mirror of
https://github.com/sadan4/dotfiles.git
synced 2025-06-07 13:03:03 -04:00
add project command
This commit is contained in:
parent
f6ecfdb790
commit
c1e593ed6b
2 changed files with 2 additions and 0 deletions
|
@ -84,6 +84,7 @@ in
|
|||
file = ./paste.sh;
|
||||
})
|
||||
}/bin/paste";
|
||||
p = "${builtins.readFile ./projectPicker.sh}";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
1
common/users/homeModules/scripts/projectPicker.sh
Normal file
1
common/users/homeModules/scripts/projectPicker.sh
Normal file
|
@ -0,0 +1 @@
|
|||
cd ~/$(find ~/dev -mindepth 2 -maxdepth 2 -type d | while read f; do (zoxide query --all --list --score $f | grep -P "^\s*?\d+?\.\d+? $f$" || echo "0.0 $f") done | awk '{$1=$1};1' | sort -rg | grep -Po "(?<=\d{0,100}?\.\d{0,100}? ).*" | sed "s#${HOME}/##" | fzf --scheme=path --cycle --filepath-word --height=50% --reverse --border --border-label " Go To Project " --color=label:bold:cyan)
|
Loading…
Add table
Add a link
Reference in a new issue