2020-01-21 23:48:06 -05:00
|
|
|
#
|
|
|
|
# ~/.bashrc
|
|
|
|
#
|
|
|
|
|
|
|
|
# If not running interactively, don't do anything
|
|
|
|
[[ $- != *i* ]] && return
|
|
|
|
|
2020-02-26 19:31:21 -05:00
|
|
|
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
|
2020-01-21 23:48:06 -05:00
|
|
|
|
|
|
|
alias ls='ls --color=auto'
|
2020-01-21 23:53:15 -05:00
|
|
|
alias grep='grep --color=auto'
|
2020-01-21 23:48:06 -05:00
|
|
|
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)'
|
2020-06-11 04:55:04 -04:00
|
|
|
alias memepv='mpv --vo=tct --profile=sw-fast'
|
2020-09-05 05:12:35 -04:00
|
|
|
alias sw='i3-swallow'
|
2021-10-30 00:05:44 -04:00
|
|
|
alias gpudrivers='lspci -nnk | grep -i VGA -A2'
|
2020-01-21 23:48:06 -05:00
|
|
|
|
2021-12-02 10:32:32 -05:00
|
|
|
export EDITOR=nvim
|
2022-06-21 18:53:59 -04:00
|
|
|
export VISUAL=nvim
|
2023-04-08 04:48:12 -04:00
|
|
|
export PATH=~/.local/bin:$PATH
|
2021-06-05 19:02:38 -04:00
|
|
|
export HISTSIZE=10000
|
|
|
|
export HISTFILESIZE=20000
|
2022-11-05 04:43:43 -04:00
|
|
|
export QT_QPA_PLATFORMTHEME=qt5ct
|
|
|
|
export TERMINAL=foot
|
2023-04-08 04:50:28 -04:00
|
|
|
export MOZ_ENABLE_WAYLAND=1
|
2023-10-25 00:49:55 -04:00
|
|
|
export _JAVA_AWT_WM_NONREPARENTING=1
|
2021-11-22 15:36:56 -05:00
|
|
|
PROMPT_COMMAND="history -a; $PROMPT_COMMAND"
|
2020-07-13 20:44:11 -04:00
|
|
|
|
2021-05-23 16:41:18 -04:00
|
|
|
export LESS=-R
|
|
|
|
export LESS_TERMCAP_mb=$'\E[1;31m' # begin blink
|
|
|
|
export LESS_TERMCAP_md=$'\E[1;36m' # begin bold
|
|
|
|
export LESS_TERMCAP_me=$'\E[0m' # reset bold/blink
|
|
|
|
export LESS_TERMCAP_so=$'\E[01;44;33m' # begin reverse video
|
|
|
|
export LESS_TERMCAP_se=$'\E[0m' # reset reverse video
|
|
|
|
export LESS_TERMCAP_us=$'\E[1;32m' # begin underline
|
|
|
|
export LESS_TERMCAP_ue=$'\E[0m' # reset underline
|
|
|
|
|
2020-06-30 04:14:49 -04:00
|
|
|
complete -cf sudo
|
|
|
|
complete -cf swallow
|
|
|
|
complete -cf sw
|
2020-01-21 23:48:06 -05:00
|
|
|
|
2021-05-28 02:15:06 -04:00
|
|
|
export PS1="\[\033[38;5;208m\]\u\[$(tput sgr0)\]@\h:\[$(tput sgr0)\]\[\033[38;5;32m\][\w]\[$(tput sgr0)\]\\$ \[$(tput sgr0)\]"
|
|
|
|
#PS1="[\\u@\\h: \\w]\$ "
|
2020-05-27 02:08:39 -04:00
|
|
|
#PS1="\033[33m[\\u@\\h: \033[33m\\w\033[33m]\033[0m\$ "
|
2020-01-21 23:48:06 -05:00
|
|
|
[ -f /opt/miniconda3/etc/profile.d/conda.sh ] && source /opt/miniconda3/etc/profile.d/conda.sh
|
2022-03-26 22:12:44 -04:00
|
|
|
|
|
|
|
|
|
|
|
# BEGIN_KITTY_SHELL_INTEGRATION
|
|
|
|
if test -n "$KITTY_INSTALLATION_DIR" -a -e "$KITTY_INSTALLATION_DIR/shell-integration/bash/kitty.bash"; then source "$KITTY_INSTALLATION_DIR/shell-integration/bash/kitty.bash"; fi
|
|
|
|
# END_KITTY_SHELL_INTEGRATION
|