Moves includes into includes folder
This commit is contained in:
parent
3933e1b17b
commit
c9291ffcbf
45 changed files with 19 additions and 5229 deletions
12
shells/zsh/includes/lfcd.zsh
Normal file
12
shells/zsh/includes/lfcd.zsh
Normal 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'
|
Loading…
Add table
Add a link
Reference in a new issue