mirror of
https://github.com/chenasraf/dotfiles.git
synced 2026-05-17 17:28:07 +00:00
feat(aliases): add get-soj-pwd and fbcurl
This commit is contained in:
11
aliases.zsh
11
aliases.zsh
@@ -204,3 +204,14 @@ alias stremio-stop="docker stop \$(docker ps -q --filter ancestor=stremio/server
|
||||
alias stremio-logs="docker logs -f \$(docker ps -q --filter ancestor=stremio/server)"
|
||||
alias stremio-restart="stremio-stop && stremio-start"
|
||||
alias addbill="exp add -c bill -m card -b common -f common"
|
||||
alias get-soj-pwd="op item get sojourny --format json --fields 'superuser id token' --reveal | jq -r .value | tr -d '\n'"
|
||||
fbcurl() {
|
||||
if [ -z "$FBPWD" ]; then
|
||||
printf "Enter password: "
|
||||
read FBPWD
|
||||
echo
|
||||
export FBPWD
|
||||
fi
|
||||
curl -fsSL -H "Authorization: Bearer $FBPWD" "$@"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user