chore(bashrc): Update config for Termux + functions
Signed-off-by: Andrei Jiroh Eugenio Halili <andreijiroh@madebythepins.tk>
This commit is contained in:
parent
4972ca43ea
commit
766ae34cfa
|
@ -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
|
||||
|
|
|
@ -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."
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue