diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-11-27 20:52:24 +0100 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-11-27 20:52:24 +0100 |
commit | 64275b265aef935c1cf383bba2ebaa34f18054fc (patch) | |
tree | bd6af5219cf74ceaa7325cfa88cdb3f53617baa7 | |
parent | dbac83a1eeb84c2cc1c998ec72d04a604ea9b9c1 (diff) |
bash: Add the ‘goto’ function
-rw-r--r-- | .bashrc | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -24,6 +24,10 @@ function jc { __dir_search "$1" "$XDG_CONFIG_HOME" -maxdepth 1 -type d } +function goto { + cd "$(fzf --literal --filepath-word --walker=dir --walker-root="$HOME")" +} + export BROWSER="firefox" export CC="gcc" export EDITOR="nvim" |