neodotfiles/user/.bash_profile

44 lines
1.4 KiB
Bash
Raw Normal View History

2023-09-04 17:36:18 +00:00
#!/bin/bash
2022-07-05 21:06:56 +00:00
## ____ __
## / __ \_________ _/ /_____
## / / / / ___/ __ `/ //_/ _ \
## / /_/ / / / /_/ / ,< / __/ Clay Gomera (Drake)
## /_____/_/ \__,_/_/|_|\___/ My custom bash_profile config
##
2023-06-24 17:07:05 +00:00
# starting xsession
2023-02-20 00:41:01 +00:00
if [ -z "$DISPLAY" ] && [ "$(tty)" = "/dev/tty1" ]
2022-06-07 02:15:35 +00:00
then
2022-07-19 16:28:35 +00:00
startx -- vt1 -keeptty &>/dev/null
logout
2022-06-07 02:15:35 +00:00
fi
2023-06-24 17:07:05 +00:00
# environment variables
2023-09-04 17:36:18 +00:00
export EDITOR="~/.local/bin/lvim"
2023-10-20 03:34:51 +00:00
export VISUAL="~/.local/bin/neovide.AppImage --neovim-bin $EDITOR"
2023-10-05 08:11:11 +00:00
export BROWSER="qutebrowser"
export VIEWER="zathura"
2022-06-07 02:15:35 +00:00
2023-06-24 17:07:05 +00:00
# clean home
export XDG_DATA_HOME="$HOME/.local/share"
export XDG_CACHE_HOME="$HOME/.cache"
export XDG_CONFIG_HOME="$HOME/.config"
2023-10-05 08:11:11 +00:00
export XDG_DESKTOP_DIR="$HOME/var/desktop"
export XDG_DOWNLOAD_DIR="$HOME/var/downloads"
export XDG_TEMPLATES_DIR="$HOME/media/documents/templates"
export XDG_PUBLICSHARE_DIR="$HOME/var/public"
export XDG_DOCUMENTS_DIR="$HOME/media/documents"
export XDG_MUSIC_DIR="$HOME/media/music"
export XDG_PICTURES_DIR="$HOME/media/pictures"
export XDG_VIDEOS_DIR="$HOME/media/videos"
2023-06-24 17:07:05 +00:00
export W3M_DIR="$XDG_DATA_HOME/w3m"
export GTK2_RC_FILES="$HOME/.config/gtk-2.0/gtkrc-2.0"
2023-10-05 08:11:11 +00:00
export WGETRC="$HOME/.config/wget/wgetrc"
2023-06-24 17:07:05 +00:00
export INPUTRC="$HOME/.config/inputrc"
export GNUPGHOME="$HOME/.local/share/gnupg"
2023-06-24 18:06:02 +00:00
export LESSHISTFILE="-"
2023-10-05 08:11:11 +00:00
[ ! -d "$HOME/.config/wget/" ] && [ ! -d "$GNUPGHOME" ] && mkdir -p "$HOME/.config/wget/" "$GNUPGHOME"
2023-06-24 17:07:05 +00:00
# bashrc
source "$HOME"/.bashrc