From 3f31b4688a7a9d753d8c8a673b1870a56a81a2f7 Mon Sep 17 00:00:00 2001 From: Mathis Chenuet Date: Sun, 3 Nov 2019 11:43:41 +0800 Subject: port automatic_cd to fish --- examples/fish_automatic_cd.fish | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 examples/fish_automatic_cd.fish (limited to 'examples') 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 -- cgit 1.4.1-2-gfad0