Skip to content

Instantly share code, notes, and snippets.

@neerajadsul
Last active September 22, 2023 10:29
Show Gist options
  • Save neerajadsul/674201e22e5c6c905ef14e6c45fd4657 to your computer and use it in GitHub Desktop.
Save neerajadsul/674201e22e5c6c905ef14e6c45fd4657 to your computer and use it in GitHub Desktop.
Shell aliases and modifiers
# aliases for commonly used commands
alias ll="exa -al"
alias gad="git add"
alias gcm="git commit -m"
alias gst="git status"
alias gps="git push"
alias gpss="git push --set-upstream origin"
alias gol="git log"
alias gfa="git fetch --all"
alias gfp="git fetch --prune"
alias ghk="git checkout"
alias condad="conda deactivate"
alias condaa="conda activate"
alias grs="git restore --staged"
alias lsconda="conda env list"
alias lsvenv="ls ~/.virtualenv/"
# Map UP key to autocomplete from history
bind '"\e[A": history-search-backward'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment