Skip to content

Instantly share code, notes, and snippets.

@lesaff

lesaff/.bash_aliases

Last active Nov 10, 2015
Embed
What would you like to do?
Collection of bash aliases
# clear aliases
alias cls="clear"
# Gulp & Elixir install/update
alias gulpupdate="npm install gulp laravel-elixir laravel-elixir-imagemin laravel-elixir-sass-compass --save-dev"
# some more ls aliases
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
alias lso="ls -alG | awk '{k=0;for(i=0;i<=8;i++)k+=((substr(\$1,i+2,1)~/[rwx]/)*2^(8-i));if(k)printf(\" %0o \",k);print}'"
# Create offline copy of given URL How to use: suckit http://www.site.tld
alias suckit="wget -mkEpnp"
# Laravel & Statamic stuff
alias art='php artisan'
alias pls='php please'
alias please='php please'
# 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$//'\'')"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment