Files
dotfiles/home/dot-bashrc
2025-12-26 04:16:13 +01:00

20 lines
432 B
Plaintext

source $HOME/.common_shell
if [ -f /etc/NIXOS ]; then
eval "$(starship init bash)"
eval "$(zoxide init bash)"
else
PS1='\u@\h:\w\$ '
fi
function r() {
local tmp="$(mktemp -t "yazi-cwd.XXXXXX")" cwd
yazi "$@" --cwd-file="$tmp"
IFS= read -r -d '' cwd < "$tmp"
[ -n "$cwd" ] && [ "$cwd" != "$PWD" ] && builtin cd -- "$cwd"
rm -f -- "$tmp"
}
# Added by GitLab Knowledge Graph installer
export PATH="$HOME/.local/bin:$PATH"