all repos — dotfiles @ 0e5edf1bf7997eb26c9756e09b3423f0aa41e6c6

my *nix dotfiles

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
 9#export 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
13export PW_DIR=~/passwords
14export PW_KEY=x@icyphox.sh
15
16# better history syncing
17shopt -s histappend
18export HISTCONTROL=ignoreboth:erasedups
19HISTSIZE=1000
20HISTFILESIZE=2000
21
22# cool options for cool kids
23shopt -s \
24    autocd \
25    globstar \
26    checkwinsize \
27    cdspell \
28    dirspell \
29    expand_aliases \
30    dotglob \
31    gnu_errfmt \
32    histreedit \
33    nocasematch 
34
35bind 'set completion-ignore-case on'
36bind 'set show-all-if-ambiguous on'
37bind 'set colored-stats on'
38bind 'set completion-display-width 1'
39bind 'TAB:menu-complete'
40
41if ! shopt -oq posix; then
42  if [ -f /usr/share/bash-completion/bash_completion ]; then
43    . /usr/share/bash-completion/bash_completion
44  elif [ -f /etc/bash_completion ]; then
45    . /etc/bash_completion
46  fi
47fi
48
49# source aliases and prompt
50source ~/.bash/aliases
51if [ "$(id -u)" != 0 ]; then
52    source ~/.bash/prompt
53fi
54
55# z
56export _Z_CMD="j"
57source ~/leet/z/z.sh
58
59# title
60#trap 'echo -ne "\033]0;$BASH_COMMAND\007"' DEBUG