.profile (1142B)
1 #!/bin/ksh 2 3 export INPUTRC=$HOME/.config/readline/inputrc 4 export ENV="$HOME/.config/ksh/kshrc" 5 export EDITOR="nvim" 6 export PAGER="less" 7 export TERMINAL="st" 8 export BROWSER="vimb" 9 export work="$HOME/work" 10 export WORK="$HOME/work" 11 export SUDO_ASKPASS="$HOME/.scripts/bin/dmenu/daskpass" 12 export PASS="$HOME/.local/pass" 13 export SHELL="/usr/bin/zsh" 14 export ZDOTDIR="$HOME/.config/zsh" 15 export CURLHOME="$HOME/.config/curl/" 16 [ "$hostname" != "" ] && { 17 echo > /dev/null 18 } || [ "$HOSTNAME" != "" ] && { 19 export hostname="$HOSTNAME" 20 } || [ "$(command -v hostname)" != "" ] && { 21 export hostname=$(hostname) 22 } || { 23 echo "No built in way to get a hostname..." 24 }; 25 26 #XDG 27 eval "$(awk '{print "export " $0}' < $HOME/.config/user-dirs.dirs)" 28 export XDG_CONFIG_HOME=$HOME/.config 29 export XDG_CACHE_HOME=$HOME/.cache 30 export XDG_DATA_DIRS=/usr/local/share:/usr/share:$HOME/.local/share 31 export XAUTHORITY=$HOME/.local/.xauth 32 export LESSHISTFILE=- 33 export GNUPGHOME=$HOME/.local/gnupg 34 export IPFS_PATH=$HOME/.local/ipfs 35 36 cd $HOME # welcome home (st inherits / from hildon) 37 38 echo "$0" | grep ksh >/dev/null && export SHELL=ksh 39 40 [ "$(tty)" = "/dev/tty1" ] && startx