profile (1097B)
1 # if running bash 2 if [ -n "$BASH_VERSION" ]; then 3 # include .bashrc if it exists 4 if [ -f "$HOME/.bashrc" ]; then 5 . "$HOME/.bashrc" 6 fi 7 fi 8 9 # set PATH so it includes user's private bin if it exists 10 if [ -d "$HOME/.local/bin" ] ; then 11 PATH="$HOME/.local/bin:$PATH" 12 fi 13 14 # set PATH so it includes my scripts dir if it exists 15 if [ -d "$HOME/.scripts" ] ; then 16 PATH="$HOME/.scripts:$PATH" 17 fi 18 19 # set PATH so it includes npm bin if it exists 20 if [ -d "$HOME/.npm-global/bin" ] ; then 21 PATH="$HOME/.npm-global/bin:$PATH" 22 fi 23 24 # environment variables 25 export EDITOR=nvim 26 export VISUAL=nvim 27 export BROWSER=firefox 28 export TERMINAL=st 29 30 export MANWIDTH=80 31 32 # load private environment variables (not tracked in git) 33 . "$HOME/.profile-private" 34 35 # notes 36 # export NOTES_DIR=[private] 37 38 # set pass directory 39 # export PASSWORD_STORE_DIR=[private] 40 41 # diary settings 42 # export DIARY_KEYID=[private] 43 # export DIARY_DIRECTORY=[private] 44 export DIARY_EDITOR=nvim 45 export DIARY_READER=less 46 47 # autostart X at login 48 if [ -z "${DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ] && [ -z "${TMUX}" ]; then 49 exec startx 50 fi