From accfed3e8994784fbe0381da0d6b0a18a26c59f1 Mon Sep 17 00:00:00 2001 From: Joe Date: Mon, 8 Sep 2025 21:29:37 +0200 Subject: up --- .config/zsh/alias.zsh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to '.config/zsh/alias.zsh') diff --git a/.config/zsh/alias.zsh b/.config/zsh/alias.zsh index 41b090c..bcd4cf8 100644 --- a/.config/zsh/alias.zsh +++ b/.config/zsh/alias.zsh @@ -69,6 +69,20 @@ alias \ dgit='git --git-dir=$HOME/docs/dotfiles-bsd --work-tree=$HOME' \ confgit='git --git-dir=$HOME/docs/conffiles-bsd --work-tree=/' \ git-pull-all='git branch -r | sed "1d;s,\x1B\[[0-9;]*[a-zA-Z],,g" | while read remote; do git branch --track "${remote#origin/}" "$remote"; git checkout "${remote#origin/}"; git pull; done' +b() { + oldpath="$(pwd)" + cd $HOME/.config/nnn/bookmarks + dir=$(fzf) + if [ -z "$dir" ]; then + cd "$oldpath" + return + fi + if ! cd "$dir"; then + cd "$oldpath" + return + fi + nnn +} bssh() { user='rbousset' host='bastion' -- cgit v1.2.3