diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2021-08-17 17:07:07 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2021-08-17 17:07:07 +0200 |
commit | 9b6b81a4ecbf0225d7bce6e4e86620c5c5b4b595 (patch) | |
tree | b278c20ab998b66064520f35c3b23f2f360eed12 /.config/zsh | |
parent | update (diff) | |
download | dotfiles-bsd-9b6b81a4ecbf0225d7bce6e4e86620c5c5b4b595.tar.gz dotfiles-bsd-9b6b81a4ecbf0225d7bce6e4e86620c5c5b4b595.tar.bz2 dotfiles-bsd-9b6b81a4ecbf0225d7bce6e4e86620c5c5b4b595.tar.xz dotfiles-bsd-9b6b81a4ecbf0225d7bce6e4e86620c5c5b4b595.tar.zst dotfiles-bsd-9b6b81a4ecbf0225d7bce6e4e86620c5c5b4b595.zip |
update
Diffstat (limited to '.config/zsh')
-rw-r--r-- | .config/zsh/alias.zsh | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/.config/zsh/alias.zsh b/.config/zsh/alias.zsh index 749645f..939c0e8 100644 --- a/.config/zsh/alias.zsh +++ b/.config/zsh/alias.zsh @@ -100,15 +100,9 @@ vimconf() { cd $p } pa() { - if [ "$1" ]; then - if cd "$HOME"/.local/packs/"$1"; then - ls - else - cd "$HOME"/.local/packs && ls - fi - else - cd "$HOME"/.local/packs && ls - fi + if [ -d $HOME/.local/packs ] && cd $HOME/.local/packs || return 1 + dir=$(\ls $HOME/.local/packs | fzf) + [ -z $dir ] && return || cd $dir } co() { if [ "$1" ]; then |