Last active
October 27, 2023 09:58
-
-
Save ronaldsuwandi/62aeafabadbc7f6ec63c23b05e4e11a9 to your computer and use it in GitHub Desktop.
zshrc custom command (after installing oh my zsh and powershell10k)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
plugins=(git zsh-autosuggestions zsh-syntax-highlighting ssh-agent) | |
alias ls="ls -lFh --color" | |
function command_not_found_handler() { | |
echo "zsh: command not found: $1\n" | |
figlet -froman lol - $1 | |
} | |
# delete merged branch as long as the branch is not master,main,dev,develop,development or */(main|master) | |
function gdeletemergedcurrent() { | |
git branch --merged | egrep -v "(^\*|master|main|dev|develop|development|.\*/(main|master))" | xargs -n 1 git branch -d | |
git remote prune origin | |
} | |
export _POWERLEVEL9K_VCS_HIDE_TAGS=1 # disable showing tags in repo | |
export JAVA_HOME=/Library/Java/JavaVirtualMachines/graalvm-community-openjdk-17.0.8+7.1/Contents/Home | |
export PATH=$HOME/.docker/bin:/Library/Java/JavaVirtualMachines/graalvm-community-openjdk-17.0.8+7.1/Contents/Home/bin:$PATH |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment