drop dark bitwarden magic and fix proton alias
This commit is contained in:
parent
4e12612a37
commit
12111a9e80
1 changed files with 2 additions and 26 deletions
28
.bashrc
28
.bashrc
|
@ -4,10 +4,10 @@ export GOTOOLCHAIN=local
|
||||||
export PATH=$PATH:/usr/local/go/bin:$GOPATH/bin
|
export PATH=$PATH:/usr/local/go/bin:$GOPATH/bin
|
||||||
export EDITOR="/usr/bin/nano"
|
export EDITOR="/usr/bin/nano"
|
||||||
|
|
||||||
alias df='df -x squashfs'
|
# alias df='df -x squashfs'
|
||||||
alias tmutt='mutt -F ~/.config/mutt/thrrgilag-muttrc'
|
alias tmutt='mutt -F ~/.config/mutt/thrrgilag-muttrc'
|
||||||
alias dmutt='mutt -F ~/.config/mutt/delta-muttrc'
|
alias dmutt='mutt -F ~/.config/mutt/delta-muttrc'
|
||||||
alias pmutt='mutt -F ~/.muttrc-proton'
|
alias pmutt='mutt -F ~/.config/mutt/proton-muttrc'
|
||||||
alias wttr='curl wttr.in'
|
alias wttr='curl wttr.in'
|
||||||
|
|
||||||
# set my titlebars
|
# set my titlebars
|
||||||
|
@ -17,27 +17,3 @@ function set_win_title(){
|
||||||
starship_precmd_user_func="set_win_title"
|
starship_precmd_user_func="set_win_title"
|
||||||
|
|
||||||
eval "$(starship init bash)"
|
eval "$(starship init bash)"
|
||||||
|
|
||||||
# Bitwarden helper functions, requires bw-cli, jq, xclip or wl-clipboard
|
|
||||||
alias bwunlock='export BW_SESSION=$(bw unlock --raw)'
|
|
||||||
function bwsearch(){
|
|
||||||
bw list items --search "$1"|jq '.[] | {id, name, username: .login.username, url: .login.url}'
|
|
||||||
}
|
|
||||||
function bwp(){
|
|
||||||
case "$XDG_SESSION_TYPE" in
|
|
||||||
x11)
|
|
||||||
bw get password "$1"|xclip -selection clipboard
|
|
||||||
sleep 5
|
|
||||||
echo -n|xclip -selection clipboard
|
|
||||||
;;
|
|
||||||
wayland)
|
|
||||||
bw get password "$1"|wl-copy
|
|
||||||
sleep 5
|
|
||||||
wl-copy --clear
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
echo "I don't know what session type this is..."
|
|
||||||
echo "$XDG_SESSION_TYPE"
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in a new issue