mirror of
https://github.com/Ascyii/dotfiles.git
synced 2025-12-31 22:44:24 -05:00
20 lines
432 B
Plaintext
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"
|