config-files/.bashrc

46 lines
998 B
Bash
Raw Normal View History

2022-12-11 11:07:30 -05:00
#
# ~/.bashrc
#
2020-11-10 20:00:15 -05:00
2023-02-08 11:16:16 -05:00
export PYTHONPATH=~/Documents/Course-Material/module-o/book/src
export MANPAGER="sh -c 'col -bx | bat -l man -p'"
2022-12-11 11:07:30 -05:00
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
2020-11-10 20:00:15 -05:00
2022-12-11 11:07:30 -05:00
# ls aliases
alias ls='exa --color=auto'
alias sl='exa --color=auto'
alias ll='exa -la --color=auto'
2020-11-10 20:00:15 -05:00
2022-12-11 11:07:30 -05:00
# git aliases
alias gs='git status'
alias gcm='git commit -m'
alias config='git --git-dir=$HOME/config-files/ --work-tree=$HOME'
2020-11-10 20:00:15 -05:00
2022-12-11 11:07:30 -05:00
# aliases
alias ..='cd ..'
2023-02-08 11:16:16 -05:00
alias vi='vim'
alias ip='ip -color=auto'
2022-12-11 11:07:30 -05:00
2023-02-08 11:16:16 -05:00
# vi key bindings
set -o vi
2022-12-11 11:07:30 -05:00
PS1='[\u@\h \W]\$ '
# starship prompt
eval "$(starship init bash)"
2023-02-08 11:16:16 -05:00
colorscript -e roshar
case ${TERM} in
xterm*|rxvt*|alacritty*|Eterm|aterm|kterm|gnome*)
PROMPT_COMMAND=${PROMPT_COMMAND:+$PROMPT_COMMAND; }'printf "\033]0;%s@%s:%s\007" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/\~}"'
;;
screen*)
PROMPT_COMMAND=${PROMPT_COMMAND:+$PROMPT_COMMAND; }'printf "\033_%s@%s:%s\033\\" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/\~}"'
;;
esac