Created
February 18, 2016 16:33
-
-
Save zz/ef3002776d1f8075eab0 to your computer and use it in GitHub Desktop.
fish config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#.config/fish/functions/ssh.fish | |
function __handler_ssh_exit --on-process %self | |
tabcolor | |
end | |
function ssh | |
tabcolor 0 255 0 | |
command ssh $argv | |
__handler_ssh_exit | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#.config/fish/functions/tabcolor.fish | |
function tabcolor | |
if test (count $argv) = 0 | |
echo -ne "\033]6;1;bg;*;default\a" | |
else if test (count $argv) = 1 | |
set color $argv[1] | |
if test $color = "red" | |
tabcolor 215 102 97 | |
else if test $color = "orange" | |
tabcolor 211 153 81 | |
else if test $color = "yellow" | |
tabcolor 207 191 89 | |
else if test $color = "green" | |
tabcolor 161 187 83 | |
else if test $color = "blue" | |
tabcolor 95 148 212 | |
else if test $color = "purple" | |
tabcolor 170 131 188 | |
else if test $color = "gray" | |
tabcolor 112 112 112 | |
end | |
else if test (count $argv) = 3 | |
set r $argv[1]; set g $argv[2]; set b $argv[3] | |
echo -ne "\033]6;1;bg;red;brightness;$r\a" | |
echo -ne "\033]6;1;bg;green;brightness;$g\a" | |
echo -ne "\033]6;1;bg;blue;brightness;$b\a" | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#.config/fish/config.fish | |
set fisher_home ~/.local/share/fisherman | |
set fisher_config ~/.config/fisherman | |
source $fisher_home/config.fish | |
alias git "hub" | |
#alias ssh "ssh-bgcolor" | |
set -x PATH $PATH ~/bin/ | |
source ~/.iterm2_shell_integration.fish |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment