From dd792d56692350de81c6252c40076f58547307fb Mon Sep 17 00:00:00 2001 From: Pierre Neidhardt Date: Fri, 5 May 2017 19:43:11 +0530 Subject: [PATCH] fish: Remove ranger wrapper --- .config/fish/functions/ranger.fish | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 .config/fish/functions/ranger.fish diff --git a/.config/fish/functions/ranger.fish b/.config/fish/functions/ranger.fish deleted file mode 100644 index 4e69fd4a..00000000 --- a/.config/fish/functions/ranger.fish +++ /dev/null @@ -1,17 +0,0 @@ -# Compatible with ranger >= 1.4.2. -# -# To undo the effect of this function, you can type "cd -" to return to the -# original directory. -function ranger -d 'Run ranger and sync folders with shell' - [ (count $argv) -eq 0 ]; and set argv . - set -l tempfile (mktemp) - command ranger --choosedir="$tempfile" $argv - if grep -q . "$tempfile" ^ /dev/null - set -l dest (cat -- "$tempfile") - ## TODO: Clear prompt so that shorter path does not print on top of longer - ## path. Could be a multi-line issue. Happens on every repaint, e.g. with - ## fzf widgets as well. - [ "$dest" != "$PWD" ]; and cd $dest; and commandline -f repaint - end - rm -f -- "$tempfile" -end