51 lines
1.3 KiB
Bash
51 lines
1.3 KiB
Bash
export XDG_DATA_HOME="$HOME/.local/share"
|
|
export XDG_CONFIG_HOME="$HOME/.config"
|
|
export XDG_STATE_HOME="$HOME/.local/state"
|
|
export XDG_CACHE_HOME="$HOME/.cache"
|
|
|
|
export SHELL_CONFIG="$SHELL_CONFIG:.profile"
|
|
export EDITOR=/usr/bin/vim
|
|
export BROWSER=/usr/bin/qutebrowser
|
|
|
|
export GOPATH="$HOME/.go"
|
|
|
|
if command -v ruby ; then
|
|
ruby_path=$(ruby -r rubygems -e "puts Gem.user_dir")/bin
|
|
export PATH="$ruby_path:$PATH"
|
|
fi &> /dev/null
|
|
|
|
if command -v php ; then
|
|
phpcs_path=$(composer global config bin-dir --absolute)
|
|
export PATH="$phpcs_path:$PATH"
|
|
fi &> /dev/null
|
|
|
|
export PATH="$PATH:$HOME/.local/bin"
|
|
|
|
# https://developers.google.com/web/tools/puppeteer/troubleshooting
|
|
export CHROME_DEVEL_SANDBOX=/usr/lib/chromium/chrome-sandbox
|
|
|
|
export HISTFILE=~/.histfile
|
|
export HISTSIZE=10000
|
|
export SAVEHIST=$HISTSIZE
|
|
|
|
#disable suspend and resume
|
|
stty -ixon
|
|
|
|
# autoenv activate
|
|
export AUTOENV_ENV_FILENAME=.in
|
|
export AUTOENV_ENV_LEAVE_FILENAME=.out
|
|
export AUTOENV_ENABLE_LEAVE=1
|
|
[ -f "$HOME/.src/autoenv/activate.sh" ] && . "$HOME/.src/autoenv/activate.sh"
|
|
|
|
# z.sh
|
|
if [ -n "$ZSH_VERSION" ] && [ -f "$HOME/.z.lua/z.lua" ] ; then
|
|
eval "$(lua $HOME/.z.lua/z.lua --init zsh enhanced once)"
|
|
fi
|
|
|
|
# custom aliases
|
|
[ -f "$HOME/.config/profile/aliases.sh" ] && . "$HOME/.config/profile/aliases.sh"
|
|
|
|
. "$HOME/.cargo/env"
|
|
|
|
# vim: filetype=sh
|