Custom fish function and bash yazi with fisher

This commit is contained in:
2025-12-24 15:58:15 +01:00
parent 428b3e717b
commit e7229185f0
8 changed files with 306 additions and 20 deletions

View File

@@ -6,6 +6,13 @@ 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"