Skip to content

Instantly share code, notes, and snippets.

@alst74
Last active January 30, 2018 12:13
Show Gist options
  • Save alst74/a93d6da739e2c6759217a4c35d4e7f64 to your computer and use it in GitHub Desktop.
Save alst74/a93d6da739e2c6759217a4c35d4e7f64 to your computer and use it in GitHub Desktop.
MAC profile
alias cd..='cd ..'
alias ..='cd ..'
alias grep='grep --color=auto'
alias egrep='egrep --color=auto'
alias fgrep='fgrep --color=auto'
alias mount='mount |column -t'
alias path='echo -e ${PATH//:/\\n}'
alias now='date +"%T"'
alias nowtime=now
alias nowdate='date +"%d-%m-%Y"'
alias grepconf="grep -v '^$\|^\s*\#'"
## pass options to free ##
#alias meminfo='free -m -l -t'
## get top process eating memory
#alias psmem='ps auxf | sort -nr -k 4'
#alias psmem10='ps auxf | sort -nr -k 4 | head -10'
## get top process eating cpu ##
#alias pscpu='ps auxf | sort -nr -k 3'
#alias pscpu10='ps auxf | sort -nr -k 3 | head -10'
## Get server cpu info ##
#alias cpuinfo='lscpu'
## older system use /proc/cpuinfo ##
##alias cpuinfo='less /proc/cpuinfo' ##
## get GPU ram on desktop / laptop##
#alias gpumeminfo='grep -i --color memory /var/log/Xorg.0.log'
export PATH="/usr/local/sbin:$PATH"
# Mac terminal colours
export PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]\$ "
export CLICOLOR=1
export LSCOLORS=ExFxBxDxCxegedabagacad
alias ls='ls -GFh'
export GREP_OPTIONS='--color=always'
export GREP_COLOR='1;31'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment