Skip to content

Instantly share code, notes, and snippets.

@emunozhern
Last active January 13, 2020 18:59
Show Gist options
  • Select an option

  • Save emunozhern/7f09cf1c5b38ac1c84a6847dc67569f8 to your computer and use it in GitHub Desktop.

Select an option

Save emunozhern/7f09cf1c5b38ac1c84a6847dc67569f8 to your computer and use it in GitHub Desktop.

Revisions

  1. emunozhern revised this gist Jan 13, 2020. 1 changed file with 1 addition and 3 deletions.
    4 changes: 1 addition & 3 deletions agnoster.zsh-theme
    Original file line number Diff line number Diff line change
    @@ -3,6 +3,4 @@ prompt_context() {
    emojis=("⚑️" "πŸ”₯" "πŸ’€" "πŸ‘‘" "😎" "🐸" "🐡" "πŸ¦„" "🌈" "🍻" "πŸš€" "πŸ’‘" "πŸŽ‰" "πŸ”‘" "πŸ‡ΉπŸ‡­" "🚦" "πŸŒ™")
    RAND_EMOJI_N=$(( $RANDOM % ${#emojis[@]} + 1))
    prompt_segment black default "${emojis[$RAND_EMOJI_N]} "
    }

    ![image](https://user-images.githubusercontent.com/10693658/53974033-6af42200-4134-11e9-835b-7cc2d351bfe7.png)
    }
  2. emunozhern revised this gist Jan 13, 2020. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions agnoster.zsh-theme
    Original file line number Diff line number Diff line change
    @@ -5,3 +5,4 @@ prompt_context() {
    prompt_segment black default "${emojis[$RAND_EMOJI_N]} "
    }

    ![image](https://user-images.githubusercontent.com/10693658/53974033-6af42200-4134-11e9-835b-7cc2d351bfe7.png)
  3. emunozhern created this gist Jan 13, 2020.
    7 changes: 7 additions & 0 deletions agnoster.zsh-theme
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    prompt_context() {
    # Custom (Random emoji)
    emojis=("⚑️" "πŸ”₯" "πŸ’€" "πŸ‘‘" "😎" "🐸" "🐡" "πŸ¦„" "🌈" "🍻" "πŸš€" "πŸ’‘" "πŸŽ‰" "πŸ”‘" "πŸ‡ΉπŸ‡­" "🚦" "πŸŒ™")
    RAND_EMOJI_N=$(( $RANDOM % ${#emojis[@]} + 1))
    prompt_segment black default "${emojis[$RAND_EMOJI_N]} "
    }