Skip to content

Instantly share code, notes, and snippets.

@mafintosh
Created August 3, 2016 16:29
Show Gist options
  • Save mafintosh/7853c9ebf0ac411573b64c0c8d7d4a03 to your computer and use it in GitHub Desktop.
Save mafintosh/7853c9ebf0ac411573b64c0c8d7d4a03 to your computer and use it in GitHub Desktop.
alias ..='cd ..'
alias ls='gls --color=auto'
alias ll='ls -lh --group-directories-first'
alias slt='open -a "Sublime Text"'
alias npm-offline="npm --cache-min Infinity "
alias publish='git push && git push --tags && npm publish'
alias nodeir='node --trace-hydrogen --trace-phase=Z --trace-deopt --code-comments --hydrogen-track-positions --redirect-code-traces --redirect-code-traces-to=code.asm --print-opt-code --trace_hydrogen_file=hydrogen.cfg'
export HISTCONTROL=ignoredups
export PS1="\[\033[44m\] \W \[\033[49m\]\[\033[42m\]\$(__git_ps1 \" %s \")\[\033[49m\] "
export NODE_REPL_HISTORY_FILE=~/.node_history
export GOPATH=~/dev/go
export PATH="$PATH:~/dev/go/bin"
PS1_EMOJIS=("๐Ÿ˜€" "๐Ÿ˜ฌ" "๐Ÿ˜" "๐Ÿ˜‚" "๐Ÿ˜ƒ" "๐Ÿ˜„" "๐Ÿ˜…" "๐Ÿ˜†" "๐Ÿ˜‡" "๐Ÿ˜‰" "๐Ÿ˜Š" "๐Ÿ™‚" "๐Ÿ™ƒ" "โ˜บ๏ธ" "๐Ÿ˜‹" "๐Ÿ˜Œ" "๐Ÿ˜" "๐Ÿ˜˜" "๐Ÿ˜—" "๐Ÿ˜™" "๐Ÿ˜š" "๐Ÿ˜œ" "๐Ÿ˜" "๐Ÿ˜›" "๐Ÿค‘" "๐Ÿค“" "๐Ÿ˜Ž" "๐Ÿค—" "๐Ÿ˜" "๐Ÿ˜ถ" "๐Ÿ˜‘" "๐Ÿ™„" "๐Ÿค”" "๐Ÿ˜ณ" "๐Ÿ˜ž" "๐Ÿ˜Ÿ" "๐Ÿ˜ " "๐Ÿ˜”" "๐Ÿ˜•" "๐Ÿ™" "๐Ÿ˜ฃ" "๐Ÿ˜–" "๐Ÿ˜ฉ" "๐Ÿ˜ค" "๐Ÿ˜ฎ" "๐Ÿ˜ฑ" "๐Ÿ˜จ" "๐Ÿ˜ฐ" "๐Ÿ˜ฏ" "๐Ÿ˜ฆ" "๐Ÿ˜ง" "๐Ÿ˜ข" "๐Ÿ˜ฅ" "๐Ÿ˜ช" "๐Ÿ˜“" "๐Ÿ˜ญ" "๐Ÿ˜ฒ" "๐Ÿค" "๐Ÿ˜ท" "๐Ÿ˜ด" "๐Ÿ’ฉ" "๐Ÿ˜บ" "๐Ÿ˜ธ" "๐Ÿ˜น" "๐Ÿ˜ป" "๐Ÿ˜ผ" "๐Ÿ˜ฝ" "๐Ÿ™€" "๐Ÿ˜ฟ" "๐Ÿ˜พ" "๐Ÿ‘" "๐Ÿ‘‹" "๐Ÿ‘‚" "๐Ÿ‘" "๐Ÿ’‹" "๐Ÿ•ถ" "๐Ÿถ" "๐Ÿฑ" "๐Ÿญ" "๐Ÿน" "๐Ÿฐ" "๐Ÿป" "๐Ÿผ" "๐Ÿจ" "๐Ÿฏ" "๐Ÿฆ" "๐Ÿฎ" "๐Ÿท" "๐Ÿฝ" "๐Ÿธ" "๐Ÿ™" "๐Ÿต" "๐Ÿ™ˆ" "๐Ÿ™‰" "๐Ÿ™Š" "๐Ÿ’" "๐Ÿ”" "๐Ÿง" "๐Ÿฆ" "๐Ÿค" "๐Ÿฃ" "๐Ÿฅ" "๐Ÿบ" "๐Ÿ—" "๐Ÿด" "๐Ÿฆ„" "๐Ÿ" "๐Ÿ›" "๐ŸŒ" "๐Ÿž" "๐Ÿœ" "๐Ÿ•ท" "๐Ÿฆ‚" "๐Ÿฆ€" "๐Ÿ" "๐Ÿข" "๐Ÿ " "๐ŸŸ" "๐Ÿก" "๐Ÿฌ" "๐Ÿณ" "๐Ÿ‹" "๐ŸŠ" "๐Ÿ†" "๐Ÿ…" "๐Ÿƒ" "๐Ÿ‚" "๐Ÿ„" "๐Ÿช" "๐Ÿซ" "๐Ÿ˜" "๐Ÿ" "๐Ÿ" "๐Ÿ‘" "๐ŸŽ" "๐Ÿ–" "๐Ÿ€" "๐Ÿ" "๐Ÿ“" "๐Ÿฆƒ" "๐Ÿ•Š" "๐Ÿ•" "๐Ÿฉ" "๐Ÿˆ" "๐Ÿ‡" "๐Ÿฟ" "๐Ÿพ" "๐Ÿ‰" "๐Ÿฒ" "๐Ÿ•ธ" "๐Ÿค" "๐Ÿ‡")
_p1_emoji () {
printf "${PS1_EMOJIS[$RANDOM % 152]} ${PS1_EMOJIS[$RANDOM % 152]} ${PS1_EMOJIS[$RANDOM % 152]} "
}
export PS1="$PS1\$(_p1_emoji)"
reproduce () {
for i in {0..100}; do
"$@" || return 1
done
return 0
}
if [ -f /Applications/Xcode.app/Contents/Developer/usr/share/git-core/git-prompt.sh ]; then
. /Applications/Xcode.app/Contents/Developer/usr/share/git-core/git-prompt.sh
fi
if [ -f $(brew --prefix)/etc/bash_completion ]; then
. $(brew --prefix)/etc/bash_completion
fi
if [ -f $(which tmpdir-tab) ]; then
. $(which tmpdir-tab)
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment