File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,7 +6,8 @@ PDF_READER=evince
66FILE_EDITOR=" $TERM vim"
77
88list_file (){
9- find $HOME -type f -not -path ' */.*' -not -path ' */site-packages/*' -not -path ' */env/*' -not -path ' */go/pkg*' | sed ' s/^/file:/g'
9+ find $HOME -type f -not -path ' */.*' -not -path ' */site-packages/*' -not -path ' */env/*' -not -path ' */go/pkg*' -mount | sed ' s/^/file:/g'
10+
1011}
1112
1213run_file (){
Original file line number Diff line number Diff line change @@ -3,13 +3,13 @@ source "$HOME/.config/scripts/settings.sh"
33
44list_otp (){
55 for password_store in $PASSWORD_STORES ; do
6- find " $password_store " -name ' *.gpg' | sed -e " s|.*$( basename " $password_store " ) /||g" -e ' s|.gpg||g' | sed " s/^/otp:$( basename " $password_store " ) >/g"
6+ find " $password_store " -name ' *.gpg' -mount | sed -e " s|.*$( basename " $password_store " ) /||g" -e ' s|.gpg||g' | sed " s/^/otp:$( basename " $password_store " ) >/g"
77 done
88}
99
1010run_otp (){
1111 echo " $1 " | awk -F' >' ' {print $1, $2}' | (
1212 read password_store password
13- PASSWORD_STORE_DIR=" $( find " $HOME " -type d -name " $password_store " ) " pass otp -c " $password "
13+ PASSWORD_STORE_DIR=" $( find " $HOME " -type d -name " $password_store " -mount ) " pass otp -c " $password "
1414 )
1515}
Original file line number Diff line number Diff line change @@ -3,13 +3,13 @@ source "$HOME/.config/scripts/settings.sh"
33
44list_password (){
55 for password_store in $PASSWORD_STORES ; do
6- find " $password_store " -name ' *.gpg' | sed -e " s|.*$( basename " $password_store " ) /||g" -e ' s|.gpg||g' | sed " s/^/password:$( basename " $password_store " ) >/g"
6+ find " $password_store " -name ' *.gpg' -mount | sed -e " s|.*$( basename " $password_store " ) /||g" -e ' s|.gpg||g' | sed " s/^/password:$( basename " $password_store " ) >/g"
77 done
88}
99
1010run_password (){
1111 echo " $1 " | awk -F' >' ' {print $1, $2}' | (
1212 read password_store password
13- PASSWORD_STORE_DIR=" $( find " $HOME " -type d -name " $password_store " ) " pass -c " $password "
13+ PASSWORD_STORE_DIR=" $( find " $HOME " -type d -mount - name " $password_store " ) " pass -c " $password "
1414 )
1515}
You can’t perform that action at this time.
0 commit comments