-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bash_profile
30 lines (23 loc) · 914 Bytes
/
.bash_profile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
alias showFiles='defaults write com.apple.finder AppleShowAllFiles YES; killall Finder /System/Library/CoreServices/Finder.app'
alias hideFiles='defaults write com.apple.finder AppleShowAllFiles NO; killall Finder /System/Library/CoreServices/Finder.app'
export PS1="[\e[0;34m\]\u\[\e[m\]@\e[0;90m\]\h\[\e[m\] \w\[$(tput sgr0)\] \[\e[0;31m\]\t\[\e[m\]]\n$ "
# Setting PATH for Python 3.6
# The original version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.6/bin:${PATH}"
export PATH
# Clipboard aliases
alias c='pbcopy'
alias v='pbpaste'
export PATH="/usr/local/opt/llvm/bin:$PATH"
# grep colours
GREP_OPTIONS='--color=auto'
alias grep="grep $GREP_OPTIONS"
export GREP_COLOR='1;35;40'
# Repeatedly retries the command passed as arguments, until it returns 0.
function retry() {
while : ; do
$@ && break
done
}
alias here='open -a Finder .'
alias vim='nvim'