profile: synced style with dotfiles for server

master
TiynGER 4 years ago
parent d4635caa60
commit 8f45e0fc20

@ -2,7 +2,7 @@
# Profile file. Runs on login. # Profile file. Runs on login.
# Adds `~/.local/bin` and all subdirectories to $PATH # Adds `~/.local/bin` and all subdirectories to $PATH
export PATH="$PATH:$(du "$HOME/.local/bin/" | cut -f2 | tr '\n' ':' | sed 's/:*$//')" export PATH="$PATH:$(du "${HOME}/.local/bin/" | cut -f2 | tr '\n' ':' | sed 's/:*$//')"
export BROWSER="icecat" export BROWSER="icecat"
export RTV_BROWSER="qutebrowser" export RTV_BROWSER="qutebrowser"
@ -13,30 +13,30 @@ export READER="zathura"
export STATUSBAR="dwmblocks" export STATUSBAR="dwmblocks"
export TERMINAL="st" export TERMINAL="st"
export QT_QPA_PLATFORMTHEME="qt5ct" export QT_QPA_PLATFORMTHEME="qt5ct"
export WINEPREFIX="$HOME/.wine" export WINEPREFIX="${HOME}/.wine"
export JAVA_HOME="/usr/lib/jvm/java-11-openjdk" export JAVA_HOME="/usr/lib/jvm/java-11-openjdk"
export XDG_CACHE_HOME="$HOME/.cache" export XDG_CACHE_HOME="${HOME}/.cache"
export XDG_CONFIG_HOME="$HOME/.config" export XDG_CONFIG_HOME="${HOME}/.config"
export XDG_DATA_HOME="$HOME/.local/share" export XDG_DATA_HOME="${HOME}/.local/share"
export ANDROID_SDK_HOME="$XDG_CONFIG_HOME/android" export ANDROID_SDK_HOME="${XDG_CONFIG_HOME}/android"
export GNUPGHOME="$XDG_CONFIG_HOME/gnupg" export GNUPGHOME="${XDG_CONFIG_HOME}/gnupg"
export GRADLE_USER_HOME="$XDG_CONFIG_HOME/gradle" export GRADLE_USER_HOME="${XDG_CONFIG_HOME}/gradle"
export GTK2_RC_FILES="$XDG_CONFIG_HOME/gtk-2.0/gtkrc-2.0" export GTK2_RC_FILES="${XDG_CONFIG_HOME}/gtk-2.0/gtkrc-2.0"
export HISTFILE="$XDG_CACHE_HOME/shhistory" export HISTFILE="${XDG_CACHE_HOME}/shhistory"
export INPUTRC="$XDG_CONFIG_HOME/inputrc" export INPUTRC="${XDG_CONFIG_HOME}/inputrc"
export LESSKEY="$XDG_CONFIG_HOME/less/lesskey" export LESSKEY="${XDG_CONFIG_HOME}/less/lesskey"
export LESSHISTFILE="-" export LESSHISTFILE="-"
export ncmpcpp_directory="-" export ncmpcpp_directory="-"
export NOTMUCH_CONFIG="$XDG_CONFIG_HOME/notmuch-config" export NOTMUCH_CONFIG="${XDG_CONFIG_HOME}/notmuch-config"
export NPM_CONFIG_USERCONFIG="$XDG_CONFIG_HOME/npm/npmrc" export NPM_CONFIG_USERCONFIG="${XDG_CONFIG_HOME}/npm/npmrc"
export NUGET_PACKAGES="$XDG_CACHE_HOME/nugetpackages" export NUGET_PACKAGES="${XDG_CACHE_HOME}/nugetpackages"
export PASSWORD_STORE_DIR="$XDG_DATA_HOME/pass" export PASSWORD_STORE_DIR="${XDG_DATA_HOME}/pass"
export SUDO_ASKPASS="$HOME/.local/bin/tools/dmenupass" export SUDO_ASKPASS="${HOME}/.local/bin/tools/dmenupass"
export TMUX_TMPDIR="$XDG_CACHE_HOME/tmux" export TMUX_TMPDIR="${XDG_CACHE_HOME}/tmux"
export WGETRC="$XDG_CONFIG_HOME/wgetrc" export WGETRC="${XDG_CONFIG_HOME}/wgetrc"
export ZDOTDIR="$XDG_CONFIG_HOME/zsh" export ZDOTDIR="${XDG_CONFIG_HOME}/zsh"
export _JAVA_AWT_WM_NONREPARENTING=1 export _JAVA_AWT_WM_NONREPARENTING=1
# less/man colors # less/man colors
@ -49,8 +49,8 @@ export LESS_TERMCAP_se="$(printf '%b' '')"; a="${a%_}"
export LESS_TERMCAP_us="$(printf '%b' '')"; a="${a%_}" export LESS_TERMCAP_us="$(printf '%b' '')"; a="${a%_}"
export LESS_TERMCAP_ue="$(printf '%b' '')"; a="${a%_}" export LESS_TERMCAP_ue="$(printf '%b' '')"; a="${a%_}"
echo "$0" | grep "bash$" >/dev/null && [ -f ~/.bashrc ] && source "$HOME/.bashrc" echo "$0" | grep "bash$" >/dev/null && [ -f ~/.bashrc ] && source "${HOME}/.bashrc"
echo "$0" | grep "zsh$" >/dev/null && [ -f $ZDOTDIR/.zshrc ] && source "$ZDOTDIR/.zshrc" echo "$0" | grep "zsh$" >/dev/null && [ -f ${ZDOTDIR}/.zshrc ] && source "${ZDOTDIR}/.zshrc"
# Start graphical server if not already running. # Start graphical server if not already running.
[ "$(tty)" = "/dev/tty1" ] && ! pgrep -x Xorg >/dev/null && exec startx [ "$(tty)" = "/dev/tty1" ] && ! pgrep -x Xorg >/dev/null && exec startx

Loading…
Cancel
Save