Files
dotfiles/assets/.functions.zsh
2026-02-13 15:17:51 -05:00

12 lines
209 B
Bash

awkuniq() {
if [[ "$1" == "-c" ]]; then
awk '{ !x[$0]++ } END { for (i in x) print x[i] "\t" i }'
else
awk '!x[$0]++'
fi
}
bw-ssh() {
sshpass -p "$(rbw get "$1")" ssh ${@:2}
}