Skip to content

Instantly share code, notes, and snippets.

@mapsi
Last active February 22, 2016 06:39
Show Gist options
  • Save mapsi/8182399 to your computer and use it in GitHub Desktop.
Save mapsi/8182399 to your computer and use it in GitHub Desktop.
My .bashrc for Mac OSX 10.9.1
## Colorize the ls output ##
alias ls='ls -G'
## Use a long listing format ##
alias ll='ls -la'
## Show hidden files ##
alias l.='ls -d .*'
## Colorize the grep command output for ease of use (good for log files)##
alias grep='grep --color=auto'
alias egrep='egrep --color=auto'
alias fgrep='fgrep --color=auto'
# Make mount command output pretty and human readable format
alias mount='mount |column -t'
# Time functions
alias nowtime='date +"%T"'
alias nowdate='date +"%d-%m-%Y"'
alias now='nowtime && nowdate'
# Vim stuff
alias vi=vim
alias svi='sudo vi'
# Airport controls the wireless adapter
alias airport=/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport
# Resume wget by default
alias wget='wget -c'
# visual tree
alias filetree="ls -R | grep ":$" | sed -e 's/:$//' -e 's/[^-][^\/]*\//--/g' -e 's/^/ /' -e 's/-/|/'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment