Let pp and find_git_project accept a query string

This commit is contained in:
Talia 2023-05-17 16:20:29 +02:00
parent 9a9d4faadb
commit 4b51b40006
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,8 @@
#!/bin/sh
find $1 -type d -name .git | xargs dirname | fzf
root=$1
shift 1
if [ -n "$*" ]
then find $root -type d -name .git | xargs dirname | fzf -q "$*"
else find $root -type d -name .git | xargs dirname | fzf
fi

View File

@ -20,7 +20,9 @@ alias setclip='xclip -selection c'
alias tmux='tmux -2'
alias w='watch -t -d -n 1'
alias wmu='wake-me-up'
alias pp='cd $(find_git_project $HOME/workspace)'
pp() {
cd $(find_git_project $HOME/workspace "$@")
}
# Funny
alias please='sudo'