Skip to content

Instantly share code, notes, and snippets.

@ronaldsuwandi
Last active October 27, 2023 09:58
Show Gist options
  • Select an option

  • Save ronaldsuwandi/62aeafabadbc7f6ec63c23b05e4e11a9 to your computer and use it in GitHub Desktop.

Select an option

Save ronaldsuwandi/62aeafabadbc7f6ec63c23b05e4e11a9 to your computer and use it in GitHub Desktop.

Revisions

  1. ronaldsuwandi revised this gist Oct 27, 2023. 1 changed file with 7 additions and 0 deletions.
    7 changes: 7 additions & 0 deletions .zshrc
    Original file line number Diff line number Diff line change
    @@ -7,6 +7,13 @@ function command_not_found_handler() {
    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
  2. ronaldsuwandi revised this gist Sep 1, 2023. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions .zshrc
    Original file line number Diff line number Diff line change
    @@ -8,3 +8,6 @@ function command_not_found_handler() {
    }

    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
  3. ronaldsuwandi created this gist Dec 28, 2022.
    10 changes: 10 additions & 0 deletions .zshrc
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    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
    }

    export _POWERLEVEL9K_VCS_HIDE_TAGS=1 # disable showing tags in repo