chore(bashrc): Update config for Termux + functions

Signed-off-by: Andrei Jiroh Eugenio Halili <andreijiroh@madebythepins.tk>
This commit is contained in:
Andrei Jiroh Eugenio Halili 2021-05-17 14:26:49 +08:00
parent 4972ca43ea
commit 766ae34cfa
Signed by: ajhalili2006
GPG Key ID: A30EBE40AD856D88
2 changed files with 12 additions and 6 deletions

View File

@ -29,14 +29,16 @@ export DOTFILES_HOME=$HOME/.dotfiles
# then do chain sourcing
source ~/.dotfiles/bashrc/chain-source
# check if thefuck Python3 package is there
# check if thefuck Python3 package is there in case I really
# fricked the commands.
TF_PYTHON_PATH=$(command -v thefuck)
if [[ $TF_PYTHON_PATH != "" ]];then
eval $(thefuck --alias fuckwit)>>/dev/null
eval $(thefuck --alias what-the-fuck)>>/dev/null
eval $(thefuck --alias holy-shit)>>/dev/null
eval $(thefuck --alias stfu)>>/dev/null
eval $(thefuck --alias fuck)>>/dev/null
eval $(thefuck --alias fuckwit)
eval $(thefuck --alias what-the-fuck)
eval $(thefuck --alias holy-shit)
eval $(thefuck --alias stfu)
eval $(thefuck --alias fuck)
eval $(thefuck --alias bullshit)
fi
# Export my Cloudflare API keys

View File

@ -36,3 +36,7 @@ function git() {
git symbolic-ref HEAD refs/heads/main
fi
}
list-nodejs-scripts() {
cat package.json | jq .scripts || echo "No package.json found in current directory."
}