add password management
This commit is contained in:
parent
136aa8bbc7
commit
dcfa7425dc
4 changed files with 16 additions and 0 deletions
3
files/.config/service/pass-sync/run
Executable file
3
files/.config/service/pass-sync/run
Executable file
|
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
exec chpst -e "$TURNSTILE_ENV_DIR" sh -c "pass-sync && sleep 60 || sleep 360"
|
||||||
3
files/.ideavimrc
Normal file
3
files/.ideavimrc
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
set clipboard=unnamedplus " Use the OS clipboard by default
|
||||||
|
|
||||||
|
set ideajoin
|
||||||
8
files/.local/bin/pass-sync
Executable file
8
files/.local/bin/pass-sync
Executable file
|
|
@ -0,0 +1,8 @@
|
||||||
|
#!/bin/sh
|
||||||
|
set -e
|
||||||
|
{
|
||||||
|
ping -c1 -W3 1.1.1.1 >/dev/null || exit # no network conncetion
|
||||||
|
pass git pull
|
||||||
|
pass git push -u --all
|
||||||
|
date
|
||||||
|
} > "$HOME/.last-sync" 2>&1
|
||||||
|
|
@ -17,6 +17,8 @@ alias xi='xi -y'
|
||||||
alias vi='vis'
|
alias vi='vis'
|
||||||
alias nvi='vis'
|
alias nvi='vis'
|
||||||
alias xr='doas xbps-remove -y'
|
alias xr='doas xbps-remove -y'
|
||||||
|
alias pc='pass -c'
|
||||||
|
alias pe='pass edit'
|
||||||
|
|
||||||
date
|
date
|
||||||
printf 'BAT %s%%\n' "$(cat /sys/class/power_supply/BAT0/capacity)"
|
printf 'BAT %s%%\n' "$(cat /sys/class/power_supply/BAT0/capacity)"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue