summaryrefslogtreecommitdiffstats
path: root/.config/zsh
diff options
context:
space:
mode:
Diffstat (limited to '.config/zsh')
-rw-r--r--.config/zsh/alias.zsh12
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