Skip to content

Instantly share code, notes, and snippets.

@thomasaarholt
Last active March 23, 2021 10:08
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thomasaarholt/e9621ab1202498f61c808f7410c22b8a to your computer and use it in GitHub Desktop.
Save thomasaarholt/e9621ab1202498f61c808f7410c22b8a to your computer and use it in GitHub Desktop.
.profile used on Machine Learning Cluster
echo 'Hello Thomas - edit PATH using "profile"'
alias ls="ls --color"
alias cd..='cd ../' # Go back 1 directory level (for fast typers)
alias cd...='cd ../../'
alias ..='cd ../' # Go back 1 directory level
alias ...='cd ../../' # Go back 2 directory levels
alias .3='cd ../../../' # Go back 3 directory levels
alias .4='cd ../../../../' # Go back 4 directory levels
alias .5='cd ../../../../../' # Go back 5 directory levels
alias .6='cd ../../../../../../' # Go back 6 directory levels
alias n='nvidia-smi' # Check GPU status
alias python="python3"
alias py="python3"
alias profile="vim ~/.bash_profile"
# instead of binding separately in inputrc
bind '"\e[A": history-search-backward'
bind '"\e[B": history-search-forward'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment