Created
January 14, 2017 14:38
-
-
Save GregOriol/5bcdbe20d63c38246176a467a0163a2d to your computer and use it in GitHub Desktop.
Some gems from my .profile on macOS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# 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