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 lf to switch directories and bind it to ctrl-o
lfcd () {
tmp="$(mktemp)"
lf -last-dir-path="$tmp" "$@"
if [ -f "$tmp" ]; then
dir="$(cat "$tmp")"
rm -f "$tmp"
[ -d "$dir" ] && [ "$dir" != "$(pwd)" ] && cd "$dir"
fi
}
alias lf="lfcd"
bindkey -s '^o' 'lf\n'