-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bashrc
61 lines (46 loc) · 1.76 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
52
53
54
55
56
57
58
59
60
61
# Increase the maximum number of open file descriptors
ulimit -n 1024
export HISTCONTROL="ignorespace:erasedups"
export HISTSIZE=10000000
# When the shell exits, append to the history file instead of overwriting it
shopt -s histappend
# Enable **/* matching
shopt -s globstar
# Set editor
export VISUAL=$(which nvim)
export PS1="\h:\W \u 🌮 "
export PATH="/usr/local/bin:/usr/local/sbin:/opt/homebrew/bin:/opt/homebrew/sbin:$PATH:${HOME}/.cargo/bin:${HOME}/.local/bin"
alias ag='ag -p ~/.config/ag/agignore'
alias awake='caffeinate -d'
alias be='bundle exec'
alias c='clear && echo -en "\e[3J"'
alias embiggen='printf "\e[8;40;100t"'
alias g='git '
alias ggrep='git grep --break --heading -n'
alias lr='lein repl'
alias magit='emacs -nw -f startup-magit'
alias prettyjson='python -m json.tool'
alias subl='subl -n'
alias tmux="env TERM=xterm-256color tmux"
export FZF_DEFAULT_COMMAND='ag --hidden -g "" --ignore ".git/" --ignore "bower_components" --ignore "legacy/framework" --ignore "legacy/protected/extensions"'
source_if_present() {
path_to_source=$1
[ -f "$path_to_source" ] && source "$path_to_source"
}
export ASDF_NODEJS_LEGACY_FILE_DYNAMIC_STRATEGY="latest_installed"
if command -v brew &> /dev/null; then
brew_prefix=$(brew --prefix)
if [ -f "${brew_prefix}/share/bash-completion/bash_completion" ]; then
. "${brew_prefix}/share/bash-completion/bash_completion"
__git_complete g __git_main
fi
brew_prefix_asdf=$(brew --prefix asdf)
source_if_present "${brew_prefix_asdf}/libexec/asdf.sh"
fi
source_if_present "${HOME}/.asdf/asdf.sh"
source_if_present "${HOME}/.asdf/plugins/java/set-java-home.bash"
if command -v thefuck &> /dev/null; then
eval $(thefuck --alias)
fi
source_if_present "${HOME}/.fzf.bash"
source_if_present "${HOME}/.bashrc.local"