bash/.bashrc (view raw)
1# export thingys
2export ZSH=/home/$USER/.oh-my-zsh
3export BROWSER=/usr/bin/firefox
4export EDITOR=/usr/bin/nvim
5export SSH_KEY_PATH="~/.ssh/id_rsa"
6export PATH=$HOME/bin:$PATH
7export GPG_TTY=$(tty)
8export INPUTRC=~/.inputrc
9export PATH=$PATH:$HOME/leet/Nim/bin
10export PATH=$PATH:$HOME/.nimble/bin
11export PATH=$PATH:$HOME/.local/bin
12export PATH=$PATH:/usr/local/go/bin
13
14# better history syncing
15shopt -s histappend
16export HISTCONTROL=ignoreboth:erasedups
17HISTSIZE=1000
18HISTFILESIZE=2000
19
20# cool options for cool kids
21shopt -s \
22 autocd \
23 globstar \
24 checkwinsize \
25 cdspell \
26 dirspell \
27 expand_aliases \
28 dotglob \
29 gnu_errfmt \
30 histreedit \
31 nocasematch
32
33bind 'set completion-ignore-case on'
34bind 'set show-all-if-ambiguous on'
35bind 'set colored-stats on'
36bind 'set completion-display-width 1'
37bind 'TAB:menu-complete'
38
39if ! shopt -oq posix; then
40 if [ -f /usr/share/bash-completion/bash_completion ]; then
41 . /usr/share/bash-completion/bash_completion
42 elif [ -f /etc/bash_completion ]; then
43 . /etc/bash_completion
44 fi
45fi
46
47# source aliases and prompt
48source ~/.bash/aliases
49source ~/.bash/prompt
50
51# autojump
52[[ -s /home/icy/.autojump/etc/profile.d/autojump.sh ]] && source /home/icy/.autojump/etc/profile.d/autojump.sh
53
54# title
55trap 'echo -ne "\033]0;$BASH_COMMAND\007"' DEBUG