Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
63 lines (50 sloc) 2.4 KB
# Directory Listing
alias ll='ls -laGh'
alias l.='ls -dlh .* --color=auto' #show only hidden files
alias size='du -P -skh *' # Lists folders and files sizes in the current folder
alias cp_folder="cp -Rpv" #copies folder and all sub files and folders, preserving security and dates
alias colorslist="set | egrep 'COLOR_\w*'" # lists all the colors
# Navigation
alias -- -="cd -" #last used directory
alias ..='cd ..'
alias ...='cd ../..'
alias ....='cd ../../..'
alias .....='cd ../../../..'
# Shortcuts
alias dl="cd ~/Downloads"
alias d="cd ~/Documents/Dropbox"
alias dt="cd ~/Desktop"
alias vol="cd /Volumes"
alias h="history"
alias v="vim"
alias o="open"
alias showlib="chflags nohidden ~/Library"
# Utilities
alias df='df -h' # Show disk usage
alias top='top -o cpu' # sort by cpu usage
alias psaux='ps aux'
alias untar="tar xvzf"
alias localip="ipconfig getifaddr en0"
alias worldip="curl -s | sed 's/[^0-9\.]//g'"
# Shows most used commands
alias profileme="history | awk '{print \$2}' | awk 'BEGIN{FS=\"|\"}{print \$1}' | sort | uniq -c | sort -n | tail -n 20 | sort -nr"
if [ "$OS" = "linux" ] ; then
alias systail='tail -f /var/log/syslog'
alias systail='tail -f /var/log/system.log'
# fix double open with entries, restart Finder
alias lscleanup='/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain user;killall Finder;echo "Open With has been rebuilt, Finder will relaunch"'
# Hide/show all desktop icons (useful when presenting)
alias hidedesktop="defaults write CreateDesktop -bool false && killall Finder"
alias showdesktop="defaults write CreateDesktop -bool true && killall Finder"
# Show/hide hidden files in Finder
alias show="defaults write AppleShowAllFiles TRUE;killall Finder"
alias hide="defaults write AppleShowAllFiles FALSE;killall Finder"
# Recursively delete `.DS_Store` files
alias dscleanup="find . -type f -name '*.DS_Store' -ls -delete"
#show complete download history
alias showdownloadDB="sqlite3 ~/Library/Preferences/* 'select LSQuarantineDataURLString from LSQuarantineEvent'"
# delete complete download history
alias deletedownloadDB="sqlite3 ~/Library/Preferences/* 'delete from LSQuarantineEvent'"
You can’t perform that action at this time.