Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
40 lines (32 sloc) 1.71 KB
# General purpose
alias rm='rm -i' # prompt before deleting a file
alias lsh='ls -lhXG' # alias for ls to use long listing format, human readable sizes,
# sort and don't show groups
alias screencast='ffmpeg -f x11grab -r 30 -s 1680x1050 -i :0.0 -vcodec libx264 -vpre lossless_ultrafast -threads 0 -sameq ~/Videos/ffmpeg-recording.mp4' # launch ffmpeg for screen recording
# Aliases for working with apt-get
alias agu='sudo apt-get update' # update all packages
alias agi='sudo apt-get install' # install a package
alias ags='apt-cache search' # search packages available for installation
alias agsh='apt-cache show' # show more information on a package
alias agr='sudo apt-get remove' # remove package
alias agd='sudo apt-get dist-upgrade' # upgrade entire system
alias upgrade='sudo apt-get update && sudo apt-get upgrade' # upgrade a Ubuntu-based system
# Some aliases related to Google Apps
alias gam='python ~/bin/gam/' # launch Google Apps Manager CLI
# Useful text processing aliases
alias titlecase="sed 's/\([a-z]\)\([a-zA-Z0-9]*\)/\u\1\2/g'"
# Alias for search/show/display files commands
alias ls='ls -CF --color=auto'
alias ll='ls -ahlF'
alias l.='ls -d .*'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
# alias dir='dir --color=auto'
# alias vdir='vdir --color=auto'
# Add an "alert" alias for long running commands. Use like so:
# sleep 10; alert
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
# Miscellaneous aliases appended to this file
alias pyradio='python ~/bin/pyradio/pyradio'
alias start-tracks='sudo /opt/tracks-2.0-0/ start'