Reorganize fish config
This commit is contained in:
parent
6a59ad80c6
commit
6af97cb0fa
|
@ -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
|
|
||||||
|
|
6
home/.config/fish/functions/grep.fish
Normal file
6
home/.config/fish/functions/grep.fish
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
# Color grepping!
|
||||||
|
set -gx GREP_COLOR 31
|
||||||
|
function grep
|
||||||
|
/bin/grep --exclude=min.js --color=auto $argv
|
||||||
|
end
|
||||||
|
|
4
home/.config/fish/functions/ll.fish
Normal file
4
home/.config/fish/functions/ll.fish
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
# ls aliases. Fedora defaults, but here for compatibility
|
||||||
|
function ll
|
||||||
|
/bin/ls -hl --color=auto $argv
|
||||||
|
end
|
5
home/.config/fish/functions/ls.fish
Normal file
5
home/.config/fish/functions/ls.fish
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
# ls aliases. Fedora defaults, but here for compatibility
|
||||||
|
function ls
|
||||||
|
/bin/ls --color=auto $argv
|
||||||
|
end
|
||||||
|
|
3
home/.config/fish/functions/ping.fish
Normal file
3
home/.config/fish/functions/ping.fish
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
function ping
|
||||||
|
/bin/ping -c 10 $argv
|
||||||
|
end
|
4
home/.config/fish/functions/refish.fish
Normal file
4
home/.config/fish/functions/refish.fish
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
# refish = reload the fish config
|
||||||
|
function refish
|
||||||
|
. ~/.config/fish/config.fish
|
||||||
|
end
|
4
home/.config/fish/functions/socks.fish
Normal file
4
home/.config/fish/functions/socks.fish
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
# socks tunnel in background
|
||||||
|
function socks
|
||||||
|
/usr/bin/ssh -f -N -D 8080 kirsle@kirsle.net
|
||||||
|
end
|
4
home/.config/fish/functions/title.fish
Normal file
4
home/.config/fish/functions/title.fish
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
# A DOS-like title command
|
||||||
|
function title
|
||||||
|
set -gx FISH_CUSTOM_TITLE "$argv"
|
||||||
|
end
|
5
home/.config/fish/functions/vi.fish
Normal file
5
home/.config/fish/functions/vi.fish
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
# Use vim when I type vi
|
||||||
|
function vi
|
||||||
|
/usr/bin/vim $argv
|
||||||
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user