0b597e465a71648136263d13b42b8f9ffb374119
[dotfiles.git] / shell / .bashrc
1 shopt -s checkwinsize histappend globstar
2
3 export MESA_LOADER_DRIVER_OVERRIDE=i965
4 export HISTCONTROL=erasedups
5 export HISTFILESIZE=NOTHING
6 export HISTSIZE=NOTHING
7 export PROMPT_COMMAND='history -a'
8
9 export TERMINAL=~/projects/st/st
10 export EDITOR="vim -p"
11 export TERM=screen
12 export BROWSER=firefox
13 export PAGER=less
14
15 export SUDO_ASKPASS=/usr/lib/ssh/ssh-askpass
16
17 # XDG fixes
18 alias svn="svn --config-dir \"${XDG_CONFIG_HOME:-$HOME/.config}\"/subversion"
19 alias tmux="tmux -f \"${XDG_CONFIG_HOME:-$HOME/.config}/tmux/config\""
20 alias tudu="tudu -c \"${XDG_CONFIG_HOME:-$HOME/.config}/tudu/config\""
21 export NOTMUCH_CONFIG="${XDG_CONFIG_HOME:-$HOME/.config}"/notmuch/config
22 export PASSWORD_STORE_DIR="${XDG_DATA_HOME:-$HOME/.local/share}"/pass
23 export TMUX_TMPDIR="$XDG_RUNTIME_DIR"
24
25 export CLEAN_HOME=/opt/clean-x64
26
27 export PATH=$CLEAN_HOME/bin:~/.local/bin:$PATH
28 export PATH=/opt/texlive/2020/bin/x86_64-linux:/opt/zotero:/opt/arduino:/opt/beets/bin:/opt/firefox:$PATH
29
30 export MANPATH=~/.local/share/man:/opt/texlive/2020/texmf-dist/doc/man:/opt/arduino/java/man:$MANPATH
31
32 export GTK_IM_MODULE=xim
33 export QT_IM_MODULE=xim
34 export QT_QPA_PLATFORMTHEME=qt5ct
35
36 export NNTPSERVER=news.tweak.nl
37 alias slrn="slrn -i \"${XDG_CONFIG_HOME:-$HOME/.config}/slrn/slrnrc\""
38
39 alias ls='ls --color=auto'
40 alias grep='grep --color=auto'
41 alias vi=vim
42 alias shutdown="echo \"Are you sure? I\'m Ygdrassil\" && read && shutdown"
43
44 . /etc/bash_completion
45
46 set_prompt(){
47 last_c=$?
48 PS1='\H'
49 [[ $last_c -ge 1 ]] && PS1="($last_c) $PS1"
50 PS1="$PS1\w\$ "
51 }
52 PROMPT_COMMAND='set_prompt'