1
0

Reorganize fish config

This commit is contained in:
Noah 2014-04-11 15:41:09 -07:00
parent 6a59ad80c6
commit 6af97cb0fa
9 changed files with 35 additions and 41 deletions

View File

@ -61,44 +61,3 @@ function fish_title
end end
end end
# ___ ____ _ _ ____ ____ __ __
# / __)( ___)( \( )( ___)( _ \ /__\ ( )
# ( (_-. )__) ) ( )__) ) / /(__)\ )(__
# \___/(____)(_)\_)(____)(_)\_)(__)(__)(____)
# -==General Aliases and Functions==-
function vi
/usr/bin/vim $argv
end
function refish
. ~/.config/fish/config.fish
end
# A DOS-like title command
function title
set -gx FISH_CUSTOM_TITLE "$argv"
end
# Color grepping!
set -gx GREP_COLOR 31
function grep
/bin/grep --exclude=min.js --color=auto $argv
end
# ls aliases. Fedora defaults, but here for compatibility
function ls
/bin/ls --color=auto $argv
end
function ll
/bin/ls -hl --color=auto $argv
end
function ping
/bin/ping -c 10 $argv
end
# socks tunnel in background
function socks
/usr/bin/ssh -f -N -D 8080 kirsle@kirsle.net
end

View File

@ -0,0 +1,6 @@
# Color grepping!
set -gx GREP_COLOR 31
function grep
/bin/grep --exclude=min.js --color=auto $argv
end

View File

@ -0,0 +1,4 @@
# ls aliases. Fedora defaults, but here for compatibility
function ll
/bin/ls -hl --color=auto $argv
end

View File

@ -0,0 +1,5 @@
# ls aliases. Fedora defaults, but here for compatibility
function ls
/bin/ls --color=auto $argv
end

View File

@ -0,0 +1,3 @@
function ping
/bin/ping -c 10 $argv
end

View File

@ -0,0 +1,4 @@
# refish = reload the fish config
function refish
. ~/.config/fish/config.fish
end

View File

@ -0,0 +1,4 @@
# socks tunnel in background
function socks
/usr/bin/ssh -f -N -D 8080 kirsle@kirsle.net
end

View File

@ -0,0 +1,4 @@
# A DOS-like title command
function title
set -gx FISH_CUSTOM_TITLE "$argv"
end

View File

@ -0,0 +1,5 @@
# Use vim when I type vi
function vi
/usr/bin/vim $argv
end