Skip to content

Instantly share code, notes, and snippets.

@arolfes
Created October 10, 2019 08:54
Show Gist options
  • Save arolfes/9b51a49335f4fb44a8e6ac677096222c to your computer and use it in GitHub Desktop.
Save arolfes/9b51a49335f4fb44a8e6ac677096222c to your computer and use it in GitHub Desktop.
my personal usefull aliases in bash
#########################################
# these are my personal most used aliases
#########################################
# Default to human readable figures
alias df='df -h'
alias du='du -h'
alias ls='ls --color=auto'
alias l='ls -l'
alias ll='ls -al'
alias lll='ls -lart'
alias ..='cd ..'
alias find='/usr/bin/find'
alias grep='grep --color=always'
alias hist="history"
# git shortcuts
alias gs="git status"
alias gc="git clone"
alias gf="git fetch"
alias gp="git pull"
alias gfp="git fetch && git pull"
# maybe this is useless when only python3 is installed, but currently my ubuntu comes with python 2
alias pip=pip3
alias vi=vim
alias n="nautilus ."
alias n^="nautilus .."
#######################
# used only in cygwin #
#######################
alias e='explorer.exe "`cygpath -w $PWD`"'
alias "e^"='explorer.exe "`cygpath -w $PWD/..`"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment