Clean up install script
Signed-off-by: Severin Kaderli <severin@kaderli.dev>
This commit is contained in:
parent
893d322bdf
commit
33c37eef02
6 changed files with 102 additions and 98 deletions
|
@ -11,11 +11,11 @@
|
|||
#
|
||||
# USAGE:
|
||||
# This script is sourced by .bashrc
|
||||
# XDG_Base_Directories
|
||||
if [ -f "${XDG_BIN_HOME}/utils" ]; then
|
||||
. "${XDG_BIN_HOME}/utils"
|
||||
fi
|
||||
|
||||
# XDG_Base_Directories
|
||||
export XDG_CONFIG_HOME="${HOME}/.config"
|
||||
export XDG_CACHE_HOME="${HOME}/.cache"
|
||||
export XDG_DATA_HOME="${HOME}/.local/share"
|
||||
|
@ -23,6 +23,13 @@ export XDG_BIN_HOME="${HOME}/.local/bin"
|
|||
export XDG_LOG_HOME="${HOME}/.local/log"
|
||||
export DOTFILES="${HOME}/dotfiles"
|
||||
|
||||
export HOST="$(hostname)"
|
||||
if [ "${HOST}" = "odin" ]; then
|
||||
export IS_WORK="1"
|
||||
else
|
||||
export IS_WORK="0"
|
||||
fi
|
||||
|
||||
# XDG Overrides for unsupported programs
|
||||
export HTTPIE_CONFIG_DIR="${XDG_CONFIG_HOME}/httpie"
|
||||
export WGETRC="${XDG_CONFIG_HOME}/wget/wgetrc"
|
||||
|
@ -52,9 +59,6 @@ export TASKRC="${XDG_CONFIG_HOME}/task/taskrc"
|
|||
mkdir -p "${XDG_DATA_HOME}/python"
|
||||
export PYTHONSTARTUP="${XDG_CONFIG_HOME}/python/startup.py"
|
||||
|
||||
# Nvidia
|
||||
export __GL_SHADER_DISK_CACHE_PATH="/tmp"
|
||||
|
||||
# zsh
|
||||
export ZDOTDIR="${XDG_CONFIG_HOME}/zsh"
|
||||
export HISTFILE="${XDG_DATA_HOME}/zsh/history"
|
||||
|
@ -71,7 +75,7 @@ fi
|
|||
# Setting applications
|
||||
export VISUAL=vim
|
||||
export EDITOR="${VISUAL}"
|
||||
export TERMINAL=termite
|
||||
export TERMINAL="termite"
|
||||
export BROWSER="google-chrome-beta"
|
||||
export PAGER="less"
|
||||
export MANPAGER="${PAGER}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue