Skip to content

Instantly share code, notes, and snippets.

@brettcannon
Created August 8, 2014 19:29
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save brettcannon/7f127090323a0e4ff406 to your computer and use it in GitHub Desktop.
Save brettcannon/7f127090323a0e4ff406 to your computer and use it in GitHub Desktop.
My fish configuration
function fish_prompt
set_color -o red
echo -n "> "
set_color normal
end
# From https://github.com/mduvall/dotfiles/blob/master/fish_prompt.fish.
function fuller_prompt_cwd --description 'Print the current working directory, NOT shortened to fit the prompt'
if test "$PWD" != "$HOME"
printf "%s" (echo $PWD|sed -e 's|/private||' -e "s|^$HOME|~|")
else
echo '~'
end
end
function fish_right_prompt
set_color -o green
echo -n (fuller_prompt_cwd)
set_color normal
end
#set -g -x fish_greeting ''
set -g -x EDITOR vim
set -g -x CLICOLOR 1
alias cputop "top -ocpu -R -F -s 2"
alias view "vim -R"
alias atom /Users/bcannon/Applications/Atom.app/Contents/Resources/app/atom.sh
set -g -x CFLAGS "-Wno-unused-value -Wno-empty-body -Qunused-arguments -Wno-deprecated-declarations"
set HOMEBREW "/Users/bcannon/.local"
set LLVM_BIN $HOMEBREW/Cellar/llvm/3.4.2/bin
set -g -x CC $LLVM_BIN/clang
set -g -x CXX $LLVM_BIN/clang++
set -g -x PATH $PATH $HOMEBREW/bin
set -g -x CPPFLAGS "$CPPFLAGS -I $HOMEBREW/include"
set -g -x LDFLAGS "$LDFLAGS -L $HOMEBREW/lib"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment