profile/profile

46 lines
1.2 KiB
Bash

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"
[ -f "$HOME/.config/broot/launcher/bash/br" ] && . /home/ray/.config/broot/launcher/bash/br
# vim: filetype=sh