70 lines
1.6 KiB
Fish
70 lines
1.6 KiB
Fish
# Default path
|
|
set PATH /usr/local/bin /usr/local/sbin /usr/bin /bin /usr/sbin /sbin /usr/local/MacGPG2/bin
|
|
|
|
# Ruby support
|
|
set PATH /usr/local/Cellar/ruby/2.1.3/bin $PATH
|
|
|
|
# LaTeX!
|
|
set PATH /usr/texbin $PATH
|
|
|
|
# Local path
|
|
set PATH ~/.config/bin $PATH
|
|
|
|
# Composer (PHP)
|
|
set PATH ~/.composer/vendor/bin $PATH
|
|
|
|
# Atom
|
|
set PATH $PATH /opt/homebrew-cask/Caskroom/atom/latest/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/bin/apm
|
|
|
|
# DYLD_LIBRARY_PATH (Rust asked for this)
|
|
set DYLD_LIBRARY_PATH "/usr/local/lib" "$DYLD_LIBRARY_PATH"
|
|
|
|
# Mono asked for this:
|
|
source dnvm.sh
|
|
|
|
# For GitHub integration.
|
|
# See github.com/github/hub
|
|
alias git hub
|
|
|
|
# I don't want to delete things anymore.
|
|
alias rm trash
|
|
|
|
# Remove the greeting message on startup
|
|
set fish_greeting
|
|
|
|
# Stop less clearing the screen when it quits
|
|
alias less "less -X"
|
|
alias man "man -P \"less -isX\""
|
|
|
|
# Make my bloody directories
|
|
alias mkdir "mkdir -p"
|
|
|
|
# Make sl run ls afterwards
|
|
alias sl "/usr/local/bin/sl; and ls"
|
|
|
|
# SSH Agent
|
|
setenv SSH_ENV "$HOME/.ssh/environment"
|
|
if [ -n "$SSH_AGENT_PID" ]
|
|
ps -ef | grep $SSH_AGENT_PID | grep ssh-agent > /dev/null
|
|
if [ $status -eq 0 ]
|
|
test_identities
|
|
end
|
|
else
|
|
if [ -f $SSH_ENV ]
|
|
. $SSH_ENV > /dev/null
|
|
end
|
|
ps -ef | grep $SSH_AGENT_PID | grep -v grep | grep ssh-agent > /dev/null
|
|
if [ $status -eq 0 ]
|
|
test_identities
|
|
else
|
|
start_agent
|
|
end
|
|
end
|
|
|
|
|
|
# Fish colour customisations
|
|
set fish_color_autosuggestion "-o" "black"
|
|
set fish_color_command "-o" "cyan"
|
|
set fish_color_param "cyan"
|
|
set fish_color_error "red"
|
|
|