Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
58 lines (40 sloc) 1.48 KB
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
alias ls="ls --color=auto"
alias grep="grep --color=auto"
alias fgrep="fgrep --color=auto"
alias egrep="egrep --color=auto"
alias ll="ls -alF"
alias la="ls -A"
alias l="ls -CF"
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$//'\'')"'
vdiff () {
if [ "${#}" -ne 2 ] ; then
echo "vdiff requires two arguments"
echo " comparing dirs: vdiff dir_a dir_b"
echo " comparing files: vdiff file_a file_b"
return 1
local left="${1}"
local right="${2}"
if [ -d "${left}" ] && [ -d "${right}" ]; then
vim +"DirDiff ${left} ${right}"
vim -d "${left}" "${right}"
dtags () {
local image="${1}"
wget -q"${image}"/tags -O - \
| tr -d '[]" ' | tr '}' '\n' | awk -F: '{print $3}'
alias dew="docker-compose exec web"
alias dpsql="docker-compose exec postgres psql"
alias drun='docker run --rm -it -v "${PWD}":/app'
alias rmpyc="find . -name '*.pyc' -exec rm -rf {} \;"
alias jek="bundle exec jekyll serve --config _config.yml, --drafts --livereload"
alias ymp3="youtube-dl --extract-audio --audio-format mp3"
alias octal="stat -c '%a %n'"
alias follow="namei -om"
alias diff="diff --color -u"
You can’t perform that action at this time.