Skip to content

Instantly share code, notes, and snippets.

@garthtee
Last active March 21, 2022 12:35
Show Gist options
  • Save garthtee/b3ea62eba43d394651bb8386945c17ca to your computer and use it in GitHub Desktop.
Save garthtee/b3ea62eba43d394651bb8386945c17ca to your computer and use it in GitHub Desktop.
Handy Aliases for your bash/zsh profile
alias mvci="/usr/local/bin/mvn clean install"
alias mvcp="/usr/local/bin/mvn clean package"
alias sbr="mvn spring-boot:run"
alias c="clear" # Thee best!
alias l="ls -alh"
alias port="lsof -i" # Usage: port tcp:8080
alias kill-safe='kill -15' # Usage: kill-safe 12345
alias kill-force='kill -9'
# NPM
alias nerd="npm run dev"
alias npmcc="npm cache clean -f"
alias npmci="rm -rf node_modules && npm i"
alias npmfci="rm -rf node_modules && rm package-lock.json && npm i"
alias npmu="npx npm-check-updates -u"
alias npmb="npm run build"
# Git
alias gs="git status"
alias ga="git add --all"
alias gr="git reset HEAD^"
# Adding SSH keys
alias ssh-garthtee="ssh-add -D &> /dev/null && ssh-add -K ~/.ssh/github_public_key && git config --global user.email \"email@email.com\""
# Logitech mouse bluetooth issue
alias mouse="echo 'Restarting Logitech daemon 😈' && killall LogiMgrDaemon"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment