Skip to content

Commit

Permalink
shellcheck stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
joeyagreco committed Aug 6, 2024
1 parent 4c47100 commit a42b05c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .shellcheckrc
Original file line number Diff line number Diff line change
@@ -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

16 changes: 7 additions & 9 deletions .zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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"
Expand Down Expand Up @@ -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
}

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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 #
#########################
Expand Down

0 comments on commit a42b05c

Please sign in to comment.