Speedup Workspace Project Search
This commit is contained in:
parent
a956b590a8
commit
969ec2e107
1 changed files with 3 additions and 5 deletions
8
.zshrc
8
.zshrc
|
@ -26,8 +26,8 @@ compinit
|
||||||
|
|
||||||
# History
|
# History
|
||||||
HISTFILE=~/.histfile
|
HISTFILE=~/.histfile
|
||||||
HISTSIZE=10000
|
HISTSIZE=100000
|
||||||
SAVEHIST=1000
|
SAVEHIST=100000
|
||||||
|
|
||||||
# Disable Bell
|
# Disable Bell
|
||||||
unsetopt beep
|
unsetopt beep
|
||||||
|
@ -83,12 +83,10 @@ ws() {
|
||||||
["$HOME/Workspace/Userscripts"]='3,'
|
["$HOME/Workspace/Userscripts"]='3,'
|
||||||
["$HOME/Workspace/Forgejo"]='3,'
|
["$HOME/Workspace/Forgejo"]='3,'
|
||||||
["$HOME/Workspace"]='2, '
|
["$HOME/Workspace"]='2, '
|
||||||
["$HOME/Downloads"]='2,'
|
|
||||||
["$HOME"]='1, '
|
|
||||||
)
|
)
|
||||||
|
|
||||||
typeset -A display_to_path
|
typeset -A display_to_path
|
||||||
find "$HOME/Workspace" -type d \( -name ".git" -o -name "go.mod" -o -name "Cargo.toml" -o -name "compose.yaml" -o -name "package.json" \) -exec dirname {} \; | sort -u | \
|
find "$HOME/Workspace" -maxdepth 4 -type d \( -name ".git" -o -name "go.mod" -o -name "Cargo.toml" -o -name "compose.yaml" -o -name "package.json" \) -exec dirname {} \; | sort -u | \
|
||||||
while IFS= read -r line; do
|
while IFS= read -r line; do
|
||||||
display_line="$line"
|
display_line="$line"
|
||||||
best_prio=0
|
best_prio=0
|
||||||
|
|
Loading…
Add table
Reference in a new issue