Skip to content

Instantly share code, notes, and snippets.

@barbagrigia
Created November 12, 2016 22:57
Show Gist options
  • Select an option

  • Save barbagrigia/338517868fc9d1efdc6714d68d2a4d9b to your computer and use it in GitHub Desktop.

Select an option

Save barbagrigia/338517868fc9d1efdc6714d68d2a4d9b to your computer and use it in GitHub Desktop.
# Useful functions {{{
function ..
cd ..
end
function ...
cd ../..
end
function _prepend_to_path -d "Prepend the given dir to PATH if it exists and is not already in it"
if test -d $argv[1]
if not contains $argv[1] $PATH
set -gx PATH "$argv[1]" $PATH
end
end
end
_prepend_to_path $HOME/bin
_prepend_to_path $HOME/.local/bin
for p in $HOME/.bins/*
_prepend_to_path $p
end
set -x fish_greeting ''
if type emacsclient >/dev/null
set -x EDITOR "emacsclient -a '' -t"
end
if test -e ~/.fishrc
. ~/.fishrc
end
. ~/.config/fish/virtualfish/virtual.fish
true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment