dotfiles/.bashrc
Logan Gartner 188a8551a6
i3 and Vim improvements
Change i3 to focus based on mouse position, removed borders and made Vim
the default text editor
2020-07-13 18:44:11 -06:00

32 lines
889 B
Bash

#
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
if ! pgrep -u "$USER" ssh-agent > /dev/null; then
ssh-agent > "$XDG_RUNTIME_DIR/ssh-agent.env"
fi
if [[ ! "$SSH_AUTH_SOCK" ]]; then
eval "$(<"$XDG_RUNTIME_DIR/ssh-agent.env")"
fi
alias ls='ls --color=auto'
alias grep='grep --color=auto'
alias sudo='sudo '
alias cheat='f() { curl cheat.sh/$1; };f'
alias updatemirrors='sudo reflector --age 12 --number 10 --protocol https --sort rate --save /etc/pacman.d/mirrorlist'
alias pacman-clean='pacman -Rsn $(pacman -Qdtq)'
alias memepv='mpv --vo=tct --profile=sw-fast'
alias sw='swallow'
export EDITOR=vim
complete -cf sudo
complete -cf swallow
complete -cf sw
PS1="[\\u@\\h: \\w]\$ "
#PS1="\033[33m[\\u@\\h: \033[33m\\w\033[33m]\033[0m\$ "
[ -f /opt/miniconda3/etc/profile.d/conda.sh ] && source /opt/miniconda3/etc/profile.d/conda.sh