2019-02-20 14:19:32 +00:00
|
|
|
[[ "$XDG_CURRENT_DESKTOP" == "KDE" ]] || [[ "$XDG_CURRENT_DESKTOP" == "GNOME" ]] || export QT_QPA_PLATFORMTHEME="qt5ct"
|
|
|
|
|
|
|
|
export EDITOR=/usr/bin/vim
|
|
|
|
export BROWSER=/usr/bin/qutebrowser
|
|
|
|
|
|
|
|
export PATH=~/.npm-global/bin:$PATH
|
|
|
|
export PATH=$(ruby -r rubygems -e "puts Gem.user_dir")/bin:$PATH
|
|
|
|
export PATH=/home/ray/.bin:/home/ray/.local/bin:/home/ray/.config/composer/vendor/bin:$PATH
|
|
|
|
|
|
|
|
|
|
|
|
# fzf + ag config
|
|
|
|
export FZF_DEFAULT_COMMAND='ag --nocolor -g ""'
|
|
|
|
|
|
|
|
#disable suspend and resume
|
|
|
|
stty -ixon
|
|
|
|
#
|
|
|
|
# wal
|
|
|
|
(cat ~/.cache/wal/sequences &)
|
|
|
|
|
|
|
|
# autoenv activate
|
2019-02-23 13:34:34 +00:00
|
|
|
AUTOENV_ENV_FILENAME=.in
|
|
|
|
AUTOENV_ENV_LEAVE_FILENAME=.out
|
|
|
|
AUTOENV_ENABLE_LEAVE=1
|
|
|
|
source ~/.autoenv/activate.sh
|
2019-02-20 14:19:32 +00:00
|
|
|
|
|
|
|
# custom aliases
|
|
|
|
[[ -f ~/.config/profile//aliases.sh ]] && . ~/.config/profile/aliases.sh
|
|
|
|
|
2019-02-23 14:32:42 +00:00
|
|
|
# # ex - archive extractor
|
|
|
|
# # usage: ex <file>
|
|
|
|
ex ()
|
|
|
|
{
|
|
|
|
if [ -f $1 ] ; then
|
|
|
|
case $1 in
|
|
|
|
*.tar.bz2) tar xjf $1 ;;
|
|
|
|
*.tar.gz) tar xzf $1 ;;
|
|
|
|
*.bz2) bunzip2 $1 ;;
|
|
|
|
*.rar) unrar x $1 ;;
|
|
|
|
*.gz) gunzip $1 ;;
|
|
|
|
*.tar) tar xf $1 ;;
|
|
|
|
*.tbz2) tar xjf $1 ;;
|
|
|
|
*.tgz) tar xzf $1 ;;
|
|
|
|
*.zip) unzip $1 ;;
|
|
|
|
*.Z) uncompress $1;;
|
|
|
|
*.7z) 7z x $1 ;;
|
|
|
|
*) echo "'$1' cannot be extracted via ex()" ;;
|
|
|
|
esac
|
|
|
|
else
|
|
|
|
echo "'$1' is not a valid file"
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2019-02-20 14:19:32 +00:00
|
|
|
|
|
|
|
# vim: filetype=sh
|