new layout
This commit is contained in:
parent
005541a96f
commit
1ee7a6234a
17 changed files with 2353 additions and 2 deletions
20
zsh/.zshrc
Normal file
20
zsh/.zshrc
Normal file
|
@ -0,0 +1,20 @@
|
|||
source "$ZDOTDIR/export.zsh"
|
||||
source "$ZDOTDIR/history.zsh"
|
||||
source "$ZDOTDIR/zplugin.zsh"
|
||||
source "/usr/share/fzf/completion.zsh"
|
||||
source "/usr/share/fzf/key-bindings.zsh"
|
||||
source "/usr/share/doc/pkgfile/command-not-found.zsh"
|
||||
|
||||
for file in $ZDOTDIR/functions/*.zsh; do source "$file"; done
|
||||
|
||||
# Use lf to switch directories and bind it to ctrl-o
|
||||
lfcd () {
|
||||
tmp="$(mktemp)"
|
||||
lf -last-dir-path="$tmp" "$@"
|
||||
if test -f "$tmp"; then
|
||||
dir="$(cat "$tmp")"
|
||||
rm -f "$tmp"
|
||||
[ -d "$dir" ] && [ "$dir" != "$(pwd)" ] && cd "$dir"
|
||||
fi
|
||||
}
|
||||
bindkey -s '^o' 'lfcd\n'
|
Loading…
Add table
Add a link
Reference in a new issue