From a42b05c7cf6cab0d4dd610ab434922e2fdfd93b7 Mon Sep 17 00:00:00 2001 From: joeyagreco Date: Mon, 5 Aug 2024 20:59:17 -0400 Subject: [PATCH] shellcheck stuff --- .shellcheckrc | 2 +- .zshrc | 16 +++++++--------- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/.shellcheckrc b/.shellcheckrc index 3fed550..5fedc79 100644 --- a/.shellcheckrc +++ b/.shellcheckrc @@ -1,3 +1,3 @@ # for context on what these are, check here: https://github.com/koalaman/shellcheck/wiki/{code_here_in_all_caps} -disable=SC1091 +disable=SC1091,SC2155,SC2139 diff --git a/.zshrc b/.zshrc index 8f23834..7c6c825 100644 --- a/.zshrc +++ b/.zshrc @@ -112,7 +112,6 @@ alias nn="cd $NOTES_PATH && nvim" # screenshot and save to downloads folder alias ss="screencapture -x $DOWNLOADS_PATH/terminal-screenshot-$(date '+%Y%m%d%H%M%S').png" alias cls='clear' -alias clearpanes="clear_all_panes && all_panes 'clearall'" alias speed='clearall && speedtest-cli --secure --no-upload' alias foo='echo "foo\nbar\nbaz\nqux\nquux\ncorge\ngrault\ngarply\nwaldo\nfred\nplugh\nxyxxy\nthud"' alias make='gmake' @@ -126,7 +125,7 @@ alias vimcs='open "https://cheatography.com/marconlsantos/cheat-sheets/neovim/"' alias py="$PYTHON_COMMAND" # open up a project in pypi # o(pen)pypi -alias opypi='function _pp(){ open "https://pypi.org/project/$1/"; }; _pp' +alias opypi="f_opypi" # check name availability on pypi # a(vailability)pypi alias apypi=$PYTHON_COMMAND "$PYTHON_SCRIPTS_PATH/pypi_check.py" @@ -190,9 +189,9 @@ function f_venvdown() { # open up the given repo function c() { - cd $LOCAL_GIT_REPO_PATH + cd $LOCAL_GIT_REPO_PATH || return if [[ -n $1 ]]; then - cd "$1" + cd "$1" || return fi } @@ -239,11 +238,6 @@ function install_deps() { fi } -# clears all tmux panes -function clear_all_panes() { - for pane in $(tmux list-panes -F '#{pane_id}'); do tmux send-keys -t $pane C-u; done -} - # executes the given command in all tmux panes function all_panes() { if [ -z "$1" ]; then @@ -286,6 +280,10 @@ function f_note() { $PYTHON_COMMAND "$PYTHON_SCRIPTS_PATH/notes.py" "$*" } +function f_opypi() { + open "https://pypi.org/project/$1/" +} + ######################### # ACTIVATE LOCAL CONFIG # #########################