From 766ae34cfa55c7f800e1222daa551285b7ecef99 Mon Sep 17 00:00:00 2001 From: Andrei Jiroh Eugenio Halili Date: Mon, 17 May 2021 14:26:49 +0800 Subject: [PATCH] chore(bashrc): Update config for Termux + functions Signed-off-by: Andrei Jiroh Eugenio Halili --- bashrc/termux | 14 ++++++++------ bashrc/worthwhile-functions | 4 ++++ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/bashrc/termux b/bashrc/termux index ea967b2..36b01f3 100755 --- a/bashrc/termux +++ b/bashrc/termux @@ -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 diff --git a/bashrc/worthwhile-functions b/bashrc/worthwhile-functions index 37bffa5..bf6efb2 100644 --- a/bashrc/worthwhile-functions +++ b/bashrc/worthwhile-functions @@ -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." +}