-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathbashrc
51 lines (40 loc) · 1.21 KB
/
bashrc
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
export CLICOLOR=1
export LANG="en_US.UTF-8"
export PATH=$PATH:.
alias ls="ls --color -F"
alias ll="ls --color -F -l"
alias ,="cd .."
alias m="less"
alias hg="history | grep -i"
alias t="tmux -2 new-session -A -s hello"
alias pd='pushd'
alias gs="git status"
alias cp="cp -a"
shopt -s histappend # append rather than overwrite history
export HISTCONTROL=ignoredups:erasedups
export HISTSIZE=100000 # save last 100k commands
export HISTFILESIZE=100000 # save last 100k commands
# Prefer nvim over vim
which "nvim" &> /dev/null && vic="nvim" || vic="vim"
export EDITOR="${vic}"
alias vi="${vic} -o"
# Prompt: host␣path␣[nonzero]␣$
RED="\e[0;31m"
GRN="\e[0;33m"
CYN="\e[0;36m"
END="\e[0m"
function nonzero_return() { RETVAL=$?; [ $RETVAL -ne 0 ] && echo "[$RETVAL] "; }
export PS1="\h \w \$ "
export PS1="${GRN}\h ${CYN}\w ${RED}\`nonzero_return\`${END}${GRN}\$ ${END}"
# Non-essential aliases
[ -f ~/.fzf.bash ] && source ~/.fzf.bash
# >>> juliaup initialize >>>
# !! Contents within this block are managed by juliaup !!
case ":$PATH:" in
*:/Users/sstanfield/.juliaup/bin:*)
;;
*)
export PATH=/Users/sstanfield/.juliaup/bin${PATH:+:${PATH}}
;;
esac
# <<< juliaup initialize <<<