Moves includes into includes folder

This commit is contained in:
Jonathan Hodgson 2020-02-19 12:07:52 +00:00
parent 3933e1b17b
commit c9291ffcbf
45 changed files with 19 additions and 5229 deletions

View file

@ -0,0 +1,12 @@
# Use ranger to switch directories and bind it to ctrl-o
rangercd () {
tmp="$(mktemp)"
ranger --choosedir="$tmp" "$@"
if [ -f "$tmp" ]; then
dir="$(cat "$tmp")"
rm -f "$tmp"
[ -d "$dir" ] && [ "$dir" != "$(pwd)" ] && cd "$dir"
fi
}
alias ranger="rangercd"
#bindkey -s '^o' 'ranger\n'