about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorMathis Chenuet <artdevelopp@hotmail.fr>2019-11-03 11:43:41 +0800
committerGitHub <noreply@github.com>2019-11-03 11:43:41 +0800
commit3f31b4688a7a9d753d8c8a673b1870a56a81a2f7 (patch)
treeaa76faf715b4e46f6e1177462060a0f7b083c95e
parent9614b6cf5e222ac74f0241334ba012c53ce7c838 (diff)
downloadranger-3f31b4688a7a9d753d8c8a673b1870a56a81a2f7.tar.gz
port automatic_cd to fish
-rw-r--r--examples/fish_automatic_cd.fish5
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/fish_automatic_cd.fish b/examples/fish_automatic_cd.fish
new file mode 100644
index 00000000..6c4d3536
--- /dev/null
+++ b/examples/fish_automatic_cd.fish
@@ -0,0 +1,5 @@
+# Note: funcsave save the alias in fish's config files, you do not need to copy
+# this file anywhere, just execute it once
+
+alias ranger-cd 'ranger --choosedir=$HOME/.rangerdir; set RANGERDIR (cat $HOME/.rangerdir); cd $RANGERDIR'
+funcsave ranger-cd