Skip to content

Instantly share code, notes, and snippets.

@GregOriol
Created January 14, 2017 14:38
Show Gist options
  • Save GregOriol/5bcdbe20d63c38246176a467a0163a2d to your computer and use it in GitHub Desktop.
Save GregOriol/5bcdbe20d63c38246176a467a0163a2d to your computer and use it in GitHub Desktop.
Some gems from my .profile on macOS
#
# Aliases
#
alias o="open ."
alias ..="cd .."
alias .="pwd"
alias c="clear"
alias sha1='openssl dgst -sha1'
alias sha256='openssl dgst -sha256'
# change the title of the Terminal window
alias title="printf '\033]0;%s\007'"
# display a notification center notification
function notify_fn(){
text=$*
osascript -e "display notification \"$text\" with title \"Notification\" sound name \"\""
}
alias notify=notify_fn
#
# Other stuff
#
export EDITOR="/usr/bin/nano"
# nice short PS1 with user and path
export PS1="\u@MBP:\w\$ "
# larger commandline history
export HISTFILESIZE=2000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment