Skip to content

Instantly share code, notes, and snippets.

@mickeypash
Created February 27, 2015 20:54
Show Gist options
  • Save mickeypash/67f601fd16fef60ee05f to your computer and use it in GitHub Desktop.
Save mickeypash/67f601fd16fef60ee05f to your computer and use it in GitHub Desktop.
my aliases so far
# Aliases
# --------
# Projects
alias ipy="python -i $1"
alias prof="subl ~/.profile"
alias spy="cd ~/Documents/scripts/"
alias itech="cd ~/Documents/itech-team-pamm && workon itech-team-pamm"
alias tp="cd ~/Documents/workspace/AE4 && git pull"
alias socs="ssh 1005139p@sibu.dcs.gla.ac.uk -L 8080:webapps.dcs.gla.ac.uk:443"
alias grades="workon socs-connect && python ~/Documents/socs-connect-meras/socs.py"
# Listing files
alias ll="ls -lhA"
alias ls="ls -CF"
alias sl="ls"
alias ..="cd .."
alias cd..="cd .."
alias cs='cd;ls'
alias mkdir="mkdir -v"
alias rm="rm -i"
# Use wget to dowload resource and continue incase of a problem
alias wget="wget -c"
# Process viewer, find the CPU-intensive programs currently running.
alias top="htop && printf '\e[8;24;120t'"
# Search through the history of commands I've entered.
alias histg="history | grep"
# Most popular commands used
alias histp="bash .histp"
# We can find files in our current directory easily by setting this alias
alias fhere="find . -name "
# This one will list our disk usage in human-readable units including filesystem type
alias df="df -Tha --total"
# Git stuff
alias gst='git status'
alias gl='git pull'
alias gp='git push'
alias gd='git diff | mate'
alias gau='git add --update'
alias gc='git commit -v'
alias gca='git commit -v -a'
alias gb='git branch'
alias gba='git branch -a'
alias gco='git checkout'
alias gcob='git checkout -b'
alias gcot='git checkout -t'
alias gcotb='git checkout --track -b'
alias glog='git log'
alias glogp='git log --pretty=format:"%h %s" --graph'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment