devcontainer/config/user/bashrc

19 lines
494 B
Bash
Raw Normal View History

2024-09-17 18:32:24 +00:00
. /etc/bashrc
# === environment ===
export EDITOR=nvim \
WAYLAND_DISPLAY=wayland-0 \
XDG_RUNTIME_DIR=/run/user/1000 \
SSH_AUTH_SOCK=/run/user/1000/ssh-auth-sock
if [ -n "$MYVIMRC" ]; then
PS1='\[\e[90;42m\] container | \w \[\e[40;32m\]\[\e[m\] '
else
PS1='\[\e[97;42m\] container | \w \[\e[49;32m\]\[\e[m\] '
fi
# === aliases and functions ===
alias vi=nvim
post() { curl -sF "content=<-" "https://paste.plabble.org/$2?lang=$1" && echo; }
eval "$(zoxide init --cmd cd bash)"