better go
This commit is contained in:
parent
d098cb058d
commit
eed51e13f3
1 changed files with 2 additions and 1 deletions
3
zshrc
3
zshrc
|
@ -53,7 +53,8 @@ alias copy='urxvtc'
|
|||
|
||||
# FZF
|
||||
function go() {
|
||||
dir="$(lr /home /data -L -t 'type = d' | fzf)"
|
||||
#dir="$(find -L /home /data /etc -name "\.*" -prune , -type d \! -name '.git' 2>/dev/null | fzf)"
|
||||
dir="$(lr /home /data /etc -L -t '(name ~~ "\.*" && prune || print) && type = d && !(name = ".git")' | fzf)"
|
||||
[ -n "$dir" ] && cd "$dir" || false
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue