summaryrefslogtreecommitdiff
path: root/.bashrc
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-11-27 20:52:24 +0100
committerThomas Voss <mail@thomasvoss.com> 2024-11-27 20:52:24 +0100
commit64275b265aef935c1cf383bba2ebaa34f18054fc (patch)
treebd6af5219cf74ceaa7325cfa88cdb3f53617baa7 /.bashrc
parentdbac83a1eeb84c2cc1c998ec72d04a604ea9b9c1 (diff)
bash: Add the ‘goto’ function
Diffstat (limited to '.bashrc')
-rw-r--r--.bashrc4
1 files changed, 4 insertions, 0 deletions
diff --git a/.bashrc b/.bashrc
index 2e9687c..9f96f50 100644
--- a/.bashrc
+++ b/.bashrc
@@ -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"