lf: search ansible collections, use prettylog alias
This commit is contained in:
parent
6b59085fe8
commit
a4ed5de7ed
1 changed files with 5 additions and 5 deletions
|
@ -171,7 +171,7 @@ cmd find_word ${{
|
||||||
}}
|
}}
|
||||||
|
|
||||||
cmd find_project ${{
|
cmd find_project ${{
|
||||||
dirs=$(echo $XDG_DOCUMENTS_DIR/dev/*/*)
|
dirs=$(echo "${XDG_DOCUMENTS_DIR}/dev/"*/* "${XDG_DOCUMENTS_DIR}/dev"/*/*/collections_dev/*/*/*)
|
||||||
|
|
||||||
clear
|
clear
|
||||||
project="$(echo $dirs | xargs -n1 basename | fzf \
|
project="$(echo $dirs | xargs -n1 basename | fzf \
|
||||||
|
@ -181,10 +181,10 @@ cmd find_project ${{
|
||||||
--tiebreak="begin" \
|
--tiebreak="begin" \
|
||||||
--preview='
|
--preview='
|
||||||
f={}
|
f={}
|
||||||
dir=$(echo $XDG_DOCUMENTS_DIR/dev/*/* | xargs -n1 | sed -n "/\/$f$/p")
|
dir=$(echo "${XDG_DOCUMENTS_DIR}/dev/"*/* "${XDG_DOCUMENTS_DIR}/dev"/*/*/collections_dev/*/*/* | xargs -n1 | sed -n "/\/$f$/p")
|
||||||
git -C $dir status
|
s=$(git -c color.ui=always -C "$dir" status -s)
|
||||||
echo
|
[ -n "$s" ] && echo "$(tput setaf 1; tput bold)Uncommitted changes!$(tput sgr0)\n$s\n"
|
||||||
git -C $dir log
|
git -C "$dir" prettylog -n 100
|
||||||
' |
|
' |
|
||||||
tr -d '\n'
|
tr -d '\n'
|
||||||
)"
|
)"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue