cds: changed from fzy to fzf (useful options that I may or may not use)
This commit is contained in:
parent
189e4135ff
commit
30c500d54b
1 changed files with 2 additions and 2 deletions
|
@ -2,11 +2,11 @@
|
|||
# Source this and then run `cds`
|
||||
# cd search: cd to a directory, given part of its name
|
||||
|
||||
# Requires: fd, fzy
|
||||
# Requires: fd, fzf
|
||||
# Usage: takes `fd` arguments
|
||||
|
||||
cds() {
|
||||
DIR="$(fd -t d $@ | fzy)"
|
||||
DIR="$(fd -t d $@ | fzf -1 -q "$SEARCH_TERM" --layout=reverse --info=inline --height=10%)"
|
||||
if [ $? -eq 0 ]; then
|
||||
if [ -f "$DIR" ]; then
|
||||
cd "$(dirname "$DIR")" && pwd
|
||||
|
|
Loading…
Add table
Reference in a new issue