X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=shell%2F.bashrc;h=a26e423b56cf535444b1e453e6eca6e267bd0535;hb=aa7cb012a584dc8218bd1a141deb2b47c721e60d;hp=ddbfa89e3e77203820589caf391af70d87cb13a8;hpb=305f4e53aba70e6660e927bd26946e338dce6251;p=dotfiles.git diff --git a/shell/.bashrc b/shell/.bashrc index ddbfa89..a26e423 100644 --- a/shell/.bashrc +++ b/shell/.bashrc @@ -1,9 +1,8 @@ -shopt -s checkwinsize +shopt -s checkwinsize histappend globstar export HISTCONTROL=erasedups export HISTFILESIZE=NOTHING export HISTSIZE=NOTHING -shopt -s histappend export PROMPT_COMMAND='history -a' export TERMINAL=~/projects/st/st @@ -13,32 +12,40 @@ export BROWSER=firefox export PAGER=less export SUDO_ASKPASS=/usr/lib/ssh/ssh-askpass -export NOTMUCH_CONFIG=~/.config/notmuch/config -export CLEAN_HOME=/opt/clean +# XDG fixes +alias svn="svn --config-dir \"${XDG_CONFIG_HOME:-$HOME/.config}\"/subversion" +alias tmux="tmux -f \"${XDG_CONFIG_HOME:-$HOME/.config}/tmux/config\"" +export NOTMUCH_CONFIG="${XDG_CONFIG_HOME:-$HOME/.config}"/notmuch/config +export PASSWORD_STORE_DIR="${XDG_DATA_HOME:-$HOME/.local/share}"/pass +export TMUX_TMPDIR="$XDG_RUNTIME_DIR" + +export CLEAN_HOME=/opt/clean-x64 + export PATH=~/.local/bin:$PATH export PATH=$PATH:$CLEAN_HOME/lib/exe:$CLEAN_HOME/bin -export PATH=$PATH:~/projects/esp-open-sdk/xtensa-lx106-elf/bin -export PATH=$PATH:/opt/texlive/2018/bin/x86_64-linux +export PATH=$PATH:/opt/texlive/2020/bin/x86_64-linux:/opt/zotero:/opt/arduino:/opt/beets/bin:/opt/firefox + +export MANPATH=~/.local/share/man:/opt/texlive/2020/texmf-dist/doc/man:./arduino/java/man:$MANPATH export GTK_IM_MODULE=xim export QT_IM_MODULE=xim +export QT_QPA_PLATFORMTHEME=qt5ct -# transparency in some applications such as mutt -export COLORFGBG="default;default" +export NNTPSERVER=news.tweak.nl +alias slrn="slrn -i \"${XDG_CONFIG_HOME:-$HOME/.config}/slrn/slrnrc\"" alias ls='ls --color=auto' alias grep='grep --color=auto' alias vi=vim alias latexmk='make -f ~/.local/bin/latex.mk' -export TMUX_TMPDIR="$XDG_RUNTIME_DIR" -alias tmux='tmux -f ~/.config/tmux/config' +alias shutdown="echo \"Are you sure? I\'m Ygdrassil\" && read && shutdown" . /etc/bash_completion set_prompt(){ last_c=$? - PS1='\u@\h' + PS1='\H' [[ $last_c -ge 1 ]] && PS1="($last_c) $PS1" PS1="$PS1\w\$ " }