Skip to content

Instantly share code, notes, and snippets.

@roipoussiere
Created October 10, 2016 18:06
Show Gist options
  • Save roipoussiere/3fc32a46a41c47f656fc46429e9a08b6 to your computer and use it in GitHub Desktop.
Save roipoussiere/3fc32a46a41c47f656fc46429e9a08b6 to your computer and use it in GitHub Desktop.
My fish init config file.
#####################
### SET VARIABLES ###
#####################
set PATH /usr/local/bin $HOME/.anaconda3/bin $HOME/scripts/ $PATH
set EDITOR nano
set JAVA_HOME /usr/lib/jvm/java-7-oracle
###############
### ALIASES ###
###############
# ls aliases
alias la "ls -AlhX"
alias lr "ls -R"
# Pipe aliases (end of command)
alias H "head"
alias T "tail"
alias G "grep"
alias L "less"
# apt-get aliases
alias apts "apt-cache search"
alias apti "sudo apt-get install"
alias aptu "sudo apt-get update"
alias aptr "sudo apt-get remove"
# Shortcuts for installed programs
alias h "howdoi -c -n5" # see https://github.com/gleitz/howdoi
alias g "googler" # see https://github.com/jarun/googler
# Misc.
alias zconf "$EDITOR ~/.zshrc"
alias f "find . -name "
alias hfind "history | grep "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment