if [[ $- != *i* ]] ; then
return
fi
export LC_ALL=en_US.UTF-8
alias clr="echo -ne '\033c'"
alias mv="mv -i"
alias cp="cp -i"
alias btd="bittorrent-curses --max_upload_rate 6 "
export history_control=ignoreboth
export HISTCONTROL="$history_control"
export command_oriented_history
export HISTIGNORE='&:[bf]g:exit:ls'
export LESSCOLORIZER='pygmentize -O bg=dark,style=github-dark -f terminal16m'
shopt -s extglob
shopt -s cmdhist
shopt -s histappend
shopt -s no_empty_cmd_completion
[ -f /etc/profile.d/xprint.sh ] && source /etc/profile.d/xprint.sh
function xtitle() {
case $TERM in
xterm*|rxvt*|Eterm|eterm|alacritty)
echo -ne "\e]0;$1\007"
;;
screen)
echo -ne "\e_$1\e\\"
;;
esac
}
function xreset() {
case $TERM in
xterm*|rxvt|Eterm|eterm)
echo -ne '\ec'
;;
esac
}
function starship_set_win_title() {
local cwd="${PWD/$HOME/\~}"
cwd="${cwd##[/~]*/}/"
xtitle "$USER@$(hostname):$cwd"
}
starship_precmd_user_func=starship_set_win_title
eval "$(starship init bash)"