Compare commits

...

10 commits

Author SHA1 Message Date
odrling 4badfcbffd switch to antibody 2018-12-29 19:20:14 +01:00
odrling 7f4af546fc use fish as default shell 2018-09-14 01:48:10 +02:00
odrling 7681715b6d dots command uses HOME 2018-09-14 01:34:25 +02:00
odrling 92e0050687 remove fisher 2018-09-14 01:27:19 +02:00
odrling 5ea3d1e9fe sshmux 2018-09-14 01:05:48 +02:00
odrling 8fab92b2b2 fish config 2018-09-14 01:05:29 +02:00
odrling c0e469061f tmux conf 2018-09-12 20:42:38 +02:00
odrling 648bf050ea Merge branch 'master' of git.odrling.xyz:odrling/dotfiles 2018-09-10 12:27:59 +02:00
odrling eeadb9a552 remove ruby bins from path 2018-09-10 12:27:05 +02:00
odrling 4ac6949dfb remove ssh-agent 2018-09-09 17:48:52 +02:00
57 changed files with 241 additions and 30 deletions

10
.antibody/plugins Normal file
View file

@ -0,0 +1,10 @@
robbyrussell/oh-my-zsh path:lib/spectrum.zsh
robbyrussell/oh-my-zsh path:plugins/pass
robbyrussell/oh-my-zsh path:plugins/ssh-agent
robbyrussell/oh-my-zsh path:plugins/adb
zsh-users/zsh-autosuggestions
zsh-users/zsh-completions
zsh-users/zsh-syntax-highlighting

View file

@ -0,0 +1 @@
fisher --complete

7
.config/fish/config.fish Normal file
View file

@ -0,0 +1,7 @@
abbr --add mpod "mpv --no-video"
abbr --add mstream "mpv --no-resume-playback"
abbr --add venv "source ~/.venv/bin/activate.fish"
abbr --add vi "vim"
abbr --add eupdate "sudo emerge --sync ;and sudo emerge -u1 portage ;and sudo emerge -uavD @world"

24
.config/fish/fish_colors Normal file
View file

@ -0,0 +1,24 @@
normal
--bold
cyan
brblue
red
brred
bryellow --bold
bryellow
brmagenta
yellow
555 brblack
brgreen
--underline
green
red
--background=brblue
bryellow --background=brblack
white --bold --background=brblack
white --bold --underline
B3A06D yellow
brwhite --background=cyan
--bold
normal

@ -0,0 +1 @@
Subproject commit 41590e75979f98718bf6e0a56ef7f0db5cc41120

@ -0,0 +1 @@
Subproject commit b3f8936a9f3bbb735e0b9e9a4862d8d0d916b02e

@ -0,0 +1 @@
Subproject commit c1298e59544110d69e813a7ccbd74c8382748e08

@ -0,0 +1 @@
Subproject commit c7a51ad07839ee79743671e43ccfb55369d65a52

@ -0,0 +1 @@
Subproject commit 647d4bd3c33439cf8942a2e03dc24e59aeff895a

@ -0,0 +1 @@
Subproject commit 7bd15e9e9182c5696484cd3636a9e3ea8a68966e

@ -0,0 +1 @@
Subproject commit 1c57034a27dbe6c8efee156ac1176f28c72cbd34

@ -0,0 +1 @@
Subproject commit b94605ca5da237f225f85f2e96b879f546ff0dd6

@ -0,0 +1 @@
Subproject commit 53d2e58c942cfe26e592716b940bb84cb87179c0

View file

@ -0,0 +1 @@
../fisherman/pisces/functions/_pisces_append.fish

View file

@ -0,0 +1 @@
../fisherman/pisces/functions/_pisces_backspace.fish

View file

@ -0,0 +1 @@
../fisherman/pisces/functions/_pisces_bind_pair.fish

View file

@ -0,0 +1 @@
../fisherman/pisces/functions/_pisces_complete.fish

View file

@ -0,0 +1 @@
../fisherman/pisces/functions/_pisces_jump.fish

View file

@ -0,0 +1 @@
../fisherman/pisces/functions/_pisces_lookup.fish

View file

@ -0,0 +1 @@
../fisherman/pisces/functions/_pisces_remove.fish

View file

@ -0,0 +1 @@
../fisherman/pisces/functions/_pisces_skip.fish

View file

@ -0,0 +1,60 @@
# name: clearance
# ---------------
# Based on idan. Display the following bits on the left:
# - Virtualenv name (if applicable, see https://github.com/adambrenecki/virtualfish)
# - Current directory name
# - Git branch and dirty state (if inside a git repo)
function _git_branch_name
echo (command git symbolic-ref HEAD ^/dev/null | sed -e 's|^refs/heads/||')
end
function _git_is_dirty
echo (command git status -s --ignore-submodules=dirty ^/dev/null)
end
function fish_prompt
set -l last_status $status
set -l cyan (set_color cyan)
set -l yellow (set_color yellow)
set -l red (set_color red)
set -l blue (set_color blue)
set -l green (set_color green)
set -l normal (set_color normal)
set -l cwd $blue(pwd | sed "s:^$HOME:~:")
# Output the prompt, left to right
# Add a newline before new prompts
echo -e ''
# Display [venvname] if in a virtualenv
if set -q VIRTUAL_ENV
echo -n -s (set_color -b cyan black) '[' (basename "$VIRTUAL_ENV") ']' $normal ' '
end
# Print pwd or full path
echo -n -s $cwd $normal
# Show git branch and status
if [ (_git_branch_name) ]
set -l git_branch (_git_branch_name)
if [ (_git_is_dirty) ]
set git_info '(' $yellow $git_branch "±" $normal ')'
else
set git_info '(' $green $git_branch $normal ')'
end
echo -n -s ' · ' $git_info $normal
end
set -l prompt_color $red
if test $last_status = 0
set prompt_color $normal
end
# Terminate with a nice prompt char
echo -e -n -s $prompt_color '⟩ ' $normal
end

View file

@ -0,0 +1,3 @@
function dots
git --git-dir="$HOME/.dots" --work-tree="$HOME" $argv;
end

View file

@ -0,0 +1,4 @@
function fish_greeting -d "What's up, fish?"
uname -nmsr
uptime
end

View file

@ -0,0 +1 @@
../fisherman/metro/fish_mode_prompt.fish

View file

@ -0,0 +1 @@
../fisherman/metro/fish_prompt.fish

View file

@ -0,0 +1 @@
../fisherman/metro/fish_right_prompt.fish

View file

@ -0,0 +1,17 @@
function fish_user_key_bindings
### pisces ###
set -l _pisces_bind_mode default
switch $fish_key_bindings
case 'fish_vi_key_bindings' 'fish_hybrid_key_bindings'
set _pisces_bind_mode insert
end
set -q pisces_pairs
or set -U pisces_pairs '(,)' '[,]' '{,}' '","' "','"
for pair in $pisces_pairs
_pisces_bind_pair $_pisces_bind_mode (string split -- ',' $pair)
end
bind -M $_pisces_bind_mode \b _pisces_backspace
bind -M $_pisces_bind_mode \177 _pisces_backspace
bind -M $_pisces_bind_mode \t _pisces_complete
### pisces ###
end

View file

@ -0,0 +1 @@
../fisherman/git_util/git_ahead.fish

View file

@ -0,0 +1 @@
../fisherman/git_util/git_branch_name.fish

View file

@ -0,0 +1 @@
../fisherman/git_util/git_is_detached_head.fish

View file

@ -0,0 +1 @@
../fisherman/git_util/git_is_dirty.fish

View file

@ -0,0 +1 @@
../fisherman/git_util/git_is_empty.fish

View file

@ -0,0 +1 @@
../fisherman/git_util/git_is_repo.fish

View file

@ -0,0 +1 @@
../fisherman/git_util/git_is_staged.fish

View file

@ -0,0 +1 @@
../fisherman/git_util/git_is_stashed.fish

View file

@ -0,0 +1 @@
../fisherman/git_util/git_is_tag.fish

View file

@ -0,0 +1 @@
../fisherman/git_util/git_is_touched.fish

View file

@ -0,0 +1 @@
../fisherman/git_util/git_repository_root.fish

View file

@ -0,0 +1 @@
../fisherman/git_util/git_untracked_files.fish

View file

@ -0,0 +1,4 @@
# Defined in - @ line 0
function grep --description 'alias grep=ag'
ag $argv;
end

View file

@ -0,0 +1 @@
../fisherman/host_info/host_info.fish

View file

@ -0,0 +1 @@
../fisherman/humanize_duration/humanize_duration.fish

View file

@ -0,0 +1 @@
../fisherman/last_job_id/last_job_id.fish

View file

@ -0,0 +1 @@
../fisherman/pwd_info/pwd_info.fish

View file

@ -0,0 +1 @@
../fisherman/pwd_is_home/pwd_is_home.fish

View file

@ -0,0 +1 @@
../fisherman/segment/segment.fish

View file

@ -0,0 +1 @@
../fisherman/segment/segment_close.fish

View file

@ -0,0 +1 @@
../fisherman/segment/segment_right.fish

View file

@ -0,0 +1 @@
../fisherman/metro/set_color_custom.fish

Some files were not shown because too many files have changed in this diff Show more