Browse Source

Reorganize fish config

master
Noah Petherbridge 8 years ago
parent
commit
6af97cb0fa
  1. 41
      home/.config/fish/config.fish
  2. 6
      home/.config/fish/functions/grep.fish
  3. 4
      home/.config/fish/functions/ll.fish
  4. 5
      home/.config/fish/functions/ls.fish
  5. 3
      home/.config/fish/functions/ping.fish
  6. 4
      home/.config/fish/functions/refish.fish
  7. 4
      home/.config/fish/functions/socks.fish
  8. 4
      home/.config/fish/functions/title.fish
  9. 5
      home/.config/fish/functions/vi.fish

41
home/.config/fish/config.fish

@ -61,44 +61,3 @@ function fish_title
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

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

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

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

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

4
home/.config/fish/functions/refish.fish

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

4
home/.config/fish/functions/socks.fish

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

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

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