55 lines
1.3 KiB
Bash
55 lines
1.3 KiB
Bash
[[ "$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
|
|
AUTOENV_ENV_FILENAME=.in
|
|
AUTOENV_ENV_LEAVE_FILENAME=.out
|
|
AUTOENV_ENABLE_LEAVE=1
|
|
source ~/.autoenv/activate.sh
|
|
|
|
# custom aliases
|
|
[[ -f ~/.config/profile//aliases.sh ]] && . ~/.config/profile/aliases.sh
|
|
|
|
# # 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
|
|
}
|
|
|
|
|
|
# vim: filetype=sh
|