Overview
Comment: | Add fish config |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
5334b70051d7073423f978ec1ac10f40 |
User & Date: | js 2015-02-15 19:27:52 |
Context
2015-02-15
| ||
19:28 | tmux.conf: Set TERM to screen-256color check-in: ad1cf50dbb user: js tags: trunk | |
19:27 | Add fish config check-in: 5334b70051 user: js tags: trunk | |
19:27 | zshrc: export EDITOR check-in: bc901a6b26 user: js tags: trunk | |
Changes
Added config/fish/.gitignore.
> > | 1 2 | fishd.* fish_history |
Added config/fish/functions/cd.fish.
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | # vim: se ts=4: function cd --description 'Change directory' # Skip history in subshells if status --is-command-substitution builtin cd $argv return $status end # Avoid set completions set -l previous $PWD if test $argv[1] = - ^/dev/null if test "$__fish_cd_direction" = next ^/dev/null nextd else prevd end return $status end builtin cd $argv[1] set -l cd_status $status if test $cd_status = 0 -a "$PWD" != "$previous" set -g dirprev $dirprev $previous set -e dirnext set -g __fish_cd_direction prev end if test $cd_status = 0 ls end return $cd_status end |
Added config/fish/functions/fish_prompt.fish.
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | # vim: se ts=4: function fish_prompt --description 'Write out the prompt' set -l last_status $status if not set -q __fish_prompt_normal set -g __fish_prompt_normal (set_color normal) end set_color $fish_color_hostname echo -n (hostname -s) set_color $fish_color_hostname_colon echo -n : # PWD set_color $fish_color_cwd echo -n (prompt_pwd) echo -n $__fish_prompt_normal echo -n (__fish_git_prompt) set_color $fish_color_prompt if [ $USER = root ] echo -n '# ' else echo -n '$ ' end echo -n $__fish_prompt_normal end |
Added config/fish/functions/fish_reset_colors.fish.
> > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | # vim: se ts=4: function fish_reset_colors --description 'Reset all colors' set -U fish_color_autosuggestion 555 yellow set -U fish_color_command 5f87ff set -U fish_color_comment 5f0000 set -U fish_color_cwd 00af5f set -U fish_color_cwd_root red set -U fish_color_end normal set -U fish_color_error af0000 set -U fish_color_escape cyan set -U fish_color_history_current cyan set -U fish_color_hostname 87af5f set -U fish_color_hostname_colon 808080 set -U fish_color_jobs ffaf00 set -U fish_color_match cyan set -U fish_color_normal normal set -U fish_color_operator cyan set -U fish_color_param 87afff set -U fish_color_prompt afd7af set -U fish_color_quote af5f00 set -U fish_color_redirection 875f87 set -U fish_color_search_match --background=purple set -U fish_color_status $fish_color_error[1] set -U fish_color_valid_path --underline set -U __fish_git_prompt_color af875f end |
Added config/fish/functions/fish_right_prompt.fish.
> > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | # vim: se ts=4: function fish_right_prompt --description 'Write out the right prompt' set -l last_status $status if [ (count (jobs)) -gt 0 ] set_color $fish_color_jobs echo -n " "(count (jobs)) end if [ $last_status != 0 ] set_color $fish_color_status echo -n " $last_status" end echo -n " " end |
Added config/fish/functions/sprunge.fish.
> > > > > | 1 2 3 4 5 | # vim: se ts=4: function sprunge --description 'Paste to sprunge' curl -F "sprunge=<-" http://sprunge.us end |