fish config

This commit is contained in:
odrling 2018-09-13 16:19:12 +02:00
parent c0e469061f
commit 8fab92b2b2
56 changed files with 2759 additions and 0 deletions

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

9
.config/fish/fishfile Normal file
View file

@ -0,0 +1,9 @@
fisherman/git_util
fisherman/host_info
fisherman/humanize_duration
fisherman/last_job_id
fisherman/metro
laughedelic/pisces
fisherman/pwd_info
fisherman/pwd_is_home
fisherman/segment

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -0,0 +1 @@
/home/odrling/.config/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,4 @@
# Defined in - @ line 0
function dots --description 'alias dots=git --git-dir=/home/odrling/.dots --work-tree=/home/odrling'
git --git-dir=/home/odrling/.dots --work-tree=/home/odrling $argv;
end

View file

@ -0,0 +1,6 @@
function fish_greeting -d "What's up, fish?"
set_color $fish_color_autosuggestion
uname -nmsr
uptime
set_color normal
end

View file

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

View file

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

View file

@ -0,0 +1 @@
/home/odrling/.config/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

File diff suppressed because it is too large Load diff

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -0,0 +1 @@
/home/odrling/.config/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 @@
/home/odrling/.config/fisherman/host_info/host_info.fish

View file

@ -0,0 +1 @@
/home/odrling/.config/fisherman/humanize_duration/humanize_duration.fish

View file

@ -0,0 +1 @@
/home/odrling/.config/fisherman/last_job_id/last_job_id.fish

View file

@ -0,0 +1 @@
/home/odrling/.config/fisherman/pwd_info/pwd_info.fish

View file

@ -0,0 +1 @@
/home/odrling/.config/fisherman/pwd_is_home/pwd_is_home.fish

View file

@ -0,0 +1 @@
/home/odrling/.config/fisherman/segment/segment.fish

View file

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

View file

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

View file

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

View file

@ -0,0 +1,4 @@
# Defined in - @ line 0
function sshmoethyst --description alias\ sshmoethyst=ssh\ -t\ amoethyst\ \'\~/.local/bin/tmux-session\'
ssh -t amoethyst '~/.local/bin/tmux-session' $argv;
end

View file

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

@ -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

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