Skip to content

Instantly share code, notes, and snippets.

@pythoninthegrass
Last active September 6, 2025 23:13
Show Gist options
  • Save pythoninthegrass/faff76c2f571c57126e793733aae167d to your computer and use it in GitHub Desktop.
Save pythoninthegrass/faff76c2f571c57126e793733aae167d to your computer and use it in GitHub Desktop.

Revisions

  1. pythoninthegrass revised this gist Sep 6, 2025. 1 changed file with 0 additions and 2 deletions.
    2 changes: 0 additions & 2 deletions starship.toml
    Original file line number Diff line number Diff line change
    @@ -89,13 +89,11 @@ disabled = false

    [os.symbols]
    Alpaquita = ""
    AlmaLinux = ""
    Alpine = ""
    Amazon = ""
    Android = ""
    Arch = ""
    Artix = ""
    CachyOS = ""
    CentOS = ""
    Debian = ""
    DragonFly = ""
  2. pythoninthegrass revised this gist Sep 4, 2025. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions starship_readme.md
    Original file line number Diff line number Diff line change
    @@ -24,6 +24,7 @@ BIN_DIR=~/.local/bin sh -c "$(curl -fsSL https://starship.rs/install.sh)"

    ## ~~Copy~~ Symlink config
    ```bash
    git clone [email protected]:faff76c2f571c57126e793733aae167d.git starship_config && cd $_
    mkdir -p ~/.config
    ln -s $(pwd)/starship.toml ~/.config/starship.toml
    ```
  3. pythoninthegrass revised this gist Aug 20, 2025. 1 changed file with 4 additions and 2 deletions.
    6 changes: 4 additions & 2 deletions starship_readme.md
    Original file line number Diff line number Diff line change
    @@ -31,8 +31,10 @@ ln -s $(pwd)/starship.toml ~/.config/starship.toml
    ## Install Shell Color Script
    ```bash
    git clone https://gitlab.com/dwt1/shell-color-scripts.git
    cd shell-color-scripts
    sudo make install
    (
    cd shell-color-scripts
    sudo make install
    )
    ```

    ## Add to `.bashrc`
  4. pythoninthegrass revised this gist Aug 20, 2025. 1 changed file with 6 additions and 4 deletions.
    10 changes: 6 additions & 4 deletions starship_readme.md
    Original file line number Diff line number Diff line change
    @@ -8,10 +8,12 @@ brew install --cask font-hack-nerd-font
    # linux (arch)
    mkdir -p ~/.local/share/fonts
    git clone --filter=blob:none --sparse https://github.com/ryanoasis/nerd-fonts
    cd nerd-fonts/
    git sparse-checkout add patched-fonts/Hack
    cd patched-fonts/Hack/
    find . -name "*.ttf" -exec cp {} ~/.local/share/fonts/ \;
    (
    cd nerd-fonts/
    git sparse-checkout add patched-fonts/Hack
    cd patched-fonts/Hack/
    find . -name "*.ttf" -exec cp {} ~/.local/share/fonts/ \;
    )
    ```

    ## Install Starship
  5. pythoninthegrass revised this gist Apr 25, 2025. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions starship_readme.md
    Original file line number Diff line number Diff line change
    @@ -22,6 +22,7 @@ BIN_DIR=~/.local/bin sh -c "$(curl -fsSL https://starship.rs/install.sh)"

    ## ~~Copy~~ Symlink config
    ```bash
    mkdir -p ~/.config
    ln -s $(pwd)/starship.toml ~/.config/starship.toml
    ```

  6. pythoninthegrass revised this gist Apr 23, 2025. 2 changed files with 4 additions and 2 deletions.
    2 changes: 2 additions & 0 deletions starship.toml
    Original file line number Diff line number Diff line change
    @@ -89,11 +89,13 @@ disabled = false

    [os.symbols]
    Alpaquita = ""
    AlmaLinux = ""
    Alpine = ""
    Amazon = ""
    Android = ""
    Arch = ""
    Artix = ""
    CachyOS = ""
    CentOS = ""
    Debian = ""
    DragonFly = ""
    4 changes: 2 additions & 2 deletions starship_readme.md
    Original file line number Diff line number Diff line change
    @@ -20,9 +20,9 @@ mkdir -p ~/.local/bin
    BIN_DIR=~/.local/bin sh -c "$(curl -fsSL https://starship.rs/install.sh)"
    ```

    ## Copy config
    ## ~~Copy~~ Symlink config
    ```bash
    cp starship.toml ~/.config/starship.toml
    ln -s $(pwd)/starship.toml ~/.config/starship.toml
    ```

    ## Install Shell Color Script
  7. pythoninthegrass revised this gist Sep 5, 2024. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion starship_readme.md
    Original file line number Diff line number Diff line change
    @@ -16,7 +16,8 @@ find . -name "*.ttf" -exec cp {} ~/.local/share/fonts/ \;

    ## Install Starship
    ```bash
    sh -c "$(curl -fsSL https://starship.rs/install.sh)"
    mkdir -p ~/.local/bin
    BIN_DIR=~/.local/bin sh -c "$(curl -fsSL https://starship.rs/install.sh)"
    ```

    ## Copy config
  8. pythoninthegrass revised this gist Sep 5, 2024. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion starship_readme.md
    Original file line number Diff line number Diff line change
    @@ -3,7 +3,6 @@
    ## Install Nerd Fonts
    ```bash
    # macos
    brew tap homebrew/cask-fonts
    brew install --cask font-hack-nerd-font

    # linux (arch)
  9. pythoninthegrass revised this gist Jan 18, 2024. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions starship.toml
    Original file line number Diff line number Diff line change
    @@ -41,12 +41,12 @@ disabled = false

    # truncation length works backwards (i.e., cwd > parent > parent ...)
    [directory]
    truncation_length = 10
    truncation_length = 15
    truncation_symbol = "…/"
    truncate_to_repo = true

    [git_branch]
    truncation_length = 10
    truncation_length = 25
    truncation_symbol = ''

    [git_status]
  10. pythoninthegrass revised this gist Sep 24, 2023. 1 changed file with 5 additions and 1 deletion.
    6 changes: 5 additions & 1 deletion starship.toml
    Original file line number Diff line number Diff line change
    @@ -18,7 +18,7 @@ add_newline = true
    # standalone format to get os glyph on ps1 line,
    # prompt character below
    format = """
    $os$username$hostname:$directory$git_branch$git_status$git_commit$python
    $os$username$hostname:$directory$git_branch$git_status$git_commit$python$cmd_duration
    $character
    """

    @@ -63,6 +63,10 @@ variable = "SHELL"
    default = "unknown shell"
    disabled = true

    [cmd_duration]
    min_time = 500
    format = '[$duration](bold yellow)'

    # Show python version starting with venv
    [python]
    python_binary = ["./venv/bin/python", "python3", "python", "python2"]
  11. pythoninthegrass revised this gist Sep 15, 2023. No changes.
  12. pythoninthegrass revised this gist Sep 15, 2023. 1 changed file with 3 additions and 2 deletions.
    5 changes: 3 additions & 2 deletions starship.toml
    Original file line number Diff line number Diff line change
    @@ -6,6 +6,8 @@
    # starship explain
    # STARSHIP_LOG=trace

    "$schema" = 'https://starship.rs/config-schema.json'

    # Timeout for commands executed by starship (ms)
    command_timeout = 1000

    @@ -44,9 +46,8 @@ truncation_symbol = "…/"
    truncate_to_repo = true

    [git_branch]
    truncation_length = 4
    truncation_length = 10
    truncation_symbol = ''
    ignore_branches = ['master', 'main']

    [git_status]
    ahead = '⇡${count}'
  13. pythoninthegrass revised this gist Aug 8, 2023. 1 changed file with 16 additions and 1 deletion.
    17 changes: 16 additions & 1 deletion starship.toml
    Original file line number Diff line number Diff line change
    @@ -12,10 +12,11 @@ command_timeout = 1000
    # newline between commands
    add_newline = true

    # ! opt-in for individual modules (e.g., aws, docker, gcloud, nodejs, python)
    # standalone format to get os glyph on ps1 line,
    # prompt character below
    format = """
    $os$username$hostname:$directory
    $os$username$hostname:$directory$git_branch$git_status$git_commit$python
    $character
    """

    @@ -42,6 +43,20 @@ truncation_length = 10
    truncation_symbol = "…/"
    truncate_to_repo = true

    [git_branch]
    truncation_length = 4
    truncation_symbol = ''
    ignore_branches = ['master', 'main']

    [git_status]
    ahead = '⇡${count}'
    diverged = '⇕⇡${ahead_count}⇣${behind_count}'
    behind = '⇣${count}'
    staged = '[++\($count\)](green)'

    [git_commit]
    commit_hash_length = 4

    [env_var.SHELL]
    variable = "SHELL"
    default = "unknown shell"
  14. pythoninthegrass revised this gist Jul 30, 2023. 1 changed file with 9 additions and 0 deletions.
    9 changes: 9 additions & 0 deletions starship_readme.md
    Original file line number Diff line number Diff line change
    @@ -2,8 +2,17 @@

    ## Install Nerd Fonts
    ```bash
    # macos
    brew tap homebrew/cask-fonts
    brew install --cask font-hack-nerd-font

    # linux (arch)
    mkdir -p ~/.local/share/fonts
    git clone --filter=blob:none --sparse https://github.com/ryanoasis/nerd-fonts
    cd nerd-fonts/
    git sparse-checkout add patched-fonts/Hack
    cd patched-fonts/Hack/
    find . -name "*.ttf" -exec cp {} ~/.local/share/fonts/ \;
    ```

    ## Install Starship
  15. pythoninthegrass revised this gist Jul 25, 2023. 1 changed file with 5 additions and 3 deletions.
    8 changes: 5 additions & 3 deletions starship.toml
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,9 @@
    # https://starship.rs/config
    # https://starship.rs/presets/nerd-font.html#configuration

    # DEBUG via: `starship explain`
    # DEBUG via:
    # starship explain
    # STARSHIP_LOG=trace

    # Timeout for commands executed by starship (ms)
    command_timeout = 1000
    @@ -13,7 +15,7 @@ add_newline = true
    # standalone format to get os glyph on ps1 line,
    # prompt character below
    format = """
    $os$username$hostname
    $os$username$hostname:$directory
    $character
    """

    @@ -31,7 +33,7 @@ show_always = true

    [hostname]
    ssh_only = false
    format = "[@$hostname](green bold) "
    format = "[@$hostname](green bold)"
    disabled = false

    # truncation length works backwards (i.e., cwd > parent > parent ...)
  16. pythoninthegrass revised this gist Jul 25, 2023. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion starship.toml
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,6 @@
    # SOURCE: https://starship.rs/config
    # SOURCES
    # https://starship.rs/config
    # https://starship.rs/presets/nerd-font.html#configuration

    # DEBUG via: `starship explain`

  17. pythoninthegrass revised this gist Jul 25, 2023. 1 changed file with 56 additions and 1 deletion.
    57 changes: 56 additions & 1 deletion starship.toml
    Original file line number Diff line number Diff line change
    @@ -3,7 +3,17 @@
    # DEBUG via: `starship explain`

    # Timeout for commands executed by starship (ms)
    command_timeout = 500
    command_timeout = 1000

    # newline between commands
    add_newline = true

    # standalone format to get os glyph on ps1 line,
    # prompt character below
    format = """
    $os$username$hostname
    $character
    """

    # Replace the "❯"
    [character]
    @@ -48,3 +58,48 @@ disabled = true

    [nodejs]
    disabled = true

    [os]
    format = '[$symbol](bold white)'
    disabled = false

    [os.symbols]
    Alpaquita = ""
    Alpine = ""
    Amazon = ""
    Android = ""
    Arch = ""
    Artix = ""
    CentOS = ""
    Debian = ""
    DragonFly = ""
    Emscripten = ""
    EndeavourOS = ""
    Fedora = ""
    FreeBSD = ""
    Garuda = "󰛓 "
    Gentoo = ""
    HardenedBSD = "󰞌 "
    Illumos = "󰈸 "
    Linux = ""
    Mabox = ""
    Macos = ""
    Manjaro = ""
    Mariner = ""
    MidnightBSD = ""
    Mint = ""
    NetBSD = ""
    NixOS = ""
    OpenBSD = "󰈺 "
    openSUSE = ""
    OracleLinux = "󰌷 "
    Pop = ""
    Raspbian = ""
    Redhat = ""
    RedHatEnterprise = ""
    Redox = "󰀘 "
    Solus = "󰠳 "
    SUSE = ""
    Ubuntu = ""
    Unknown = ""
    Windows = "󰍲 "
  18. pythoninthegrass revised this gist Feb 21, 2023. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion starship.toml
    Original file line number Diff line number Diff line change
    @@ -3,7 +3,7 @@
    # DEBUG via: `starship explain`

    # Timeout for commands executed by starship (ms)
    command_timeout = 1000
    command_timeout = 500

    # Replace the "❯"
    [character]
  19. pythoninthegrass revised this gist Jan 11, 2023. 1 changed file with 5 additions and 2 deletions.
    7 changes: 5 additions & 2 deletions starship.toml
    Original file line number Diff line number Diff line change
    @@ -3,7 +3,7 @@
    # DEBUG via: `starship explain`

    # Timeout for commands executed by starship (ms)
    command_timeout = 2000
    command_timeout = 1000

    # Replace the "❯"
    [character]
    @@ -19,7 +19,7 @@ show_always = true

    [hostname]
    ssh_only = false
    format = "[@$hostname](green bold) "
    format = "[@$hostname](green bold) "
    disabled = false

    # truncation length works backwards (i.e., cwd > parent > parent ...)
    @@ -40,6 +40,9 @@ python_binary = ["./venv/bin/python", "python3", "python", "python2"]
    [aws]
    disabled = true

    [docker_context]
    disabled = true

    [gcloud]
    disabled = true

  20. pythoninthegrass revised this gist Jun 3, 2022. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion starship.toml
    Original file line number Diff line number Diff line change
    @@ -3,7 +3,7 @@
    # DEBUG via: `starship explain`

    # Timeout for commands executed by starship (ms)
    command_timeout = 1000
    command_timeout = 2000

    # Replace the "❯"
    [character]
  21. pythoninthegrass revised this gist May 28, 2022. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions starship.toml
    Original file line number Diff line number Diff line change
    @@ -37,6 +37,9 @@ disabled = true
    [python]
    python_binary = ["./venv/bin/python", "python3", "python", "python2"]

    [aws]
    disabled = true

    [gcloud]
    disabled = true

  22. pythoninthegrass revised this gist May 19, 2022. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion starship.toml
    Original file line number Diff line number Diff line change
    @@ -22,9 +22,11 @@ ssh_only = false
    format = "[@$hostname](green bold) "
    disabled = false

    # truncation length works backwards (i.e., cwd > parent > parent ...)
    [directory]
    truncation_length = 0
    truncation_length = 10
    truncation_symbol = "…/"
    truncate_to_repo = true

    [env_var.SHELL]
    variable = "SHELL"
  23. pythoninthegrass revised this gist May 19, 2022. 1 changed file with 10 additions and 2 deletions.
    12 changes: 10 additions & 2 deletions starship.toml
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,7 @@
    # SOURCE: https://starship.rs/config

    # DEBUG via: `starship explain`

    # Timeout for commands executed by starship (ms)
    command_timeout = 1000

    @@ -21,7 +23,7 @@ format = "[@$hostname](green bold) "
    disabled = false

    [directory]
    truncation_length = 8
    truncation_length = 0
    truncation_symbol = "…/"

    [env_var.SHELL]
    @@ -31,4 +33,10 @@ disabled = true

    # Show python version starting with venv
    [python]
    python_binary = ["./venv/bin/python", "python3", "python", "python2"]
    python_binary = ["./venv/bin/python", "python3", "python", "python2"]

    [gcloud]
    disabled = true

    [nodejs]
    disabled = true
  24. pythoninthegrass revised this gist May 19, 2022. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion starship_readme.md
    Original file line number Diff line number Diff line change
    @@ -33,4 +33,6 @@ eval "$(starship init bash)"
    ### Further reading
    [Starship](https://starship.rs/guide/#🚀-installation)

    [How to get the most out of your Terminal | by Reagan McFarland | Medium](https://reaganmcf.medium.com/how-to-get-the-most-out-of-your-terminal-7af47f7730a3)
    [Derek Taylor / Shell Color Scripts · GitLab](https://gitlab.com/dwt1/shell-color-scripts)

    [How to get the most out of your Terminal | by Reagan McFarland | Medium](https://reaganmcf.medium.com/how-to-get-the-most-out-of-your-terminal-7af47f7730a3)
  25. pythoninthegrass revised this gist May 19, 2022. 1 changed file with 7 additions and 0 deletions.
    7 changes: 7 additions & 0 deletions starship_readme.md
    Original file line number Diff line number Diff line change
    @@ -16,6 +16,13 @@ sh -c "$(curl -fsSL https://starship.rs/install.sh)"
    cp starship.toml ~/.config/starship.toml
    ```

    ## Install Shell Color Script
    ```bash
    git clone https://gitlab.com/dwt1/shell-color-scripts.git
    cd shell-color-scripts
    sudo make install
    ```

    ## Add to `.bashrc`
    ```bash
    # starship
  26. pythoninthegrass revised this gist May 19, 2022. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion starship_readme.md
    Original file line number Diff line number Diff line change
    @@ -13,7 +13,7 @@ sh -c "$(curl -fsSL https://starship.rs/install.sh)"

    ## Copy config
    ```bash
    cp starship.toml ~/.config~/.config/starship.toml
    cp starship.toml ~/.config/starship.toml
    ```

    ## Add to `.bashrc`
  27. pythoninthegrass revised this gist Sep 22, 2021. 1 changed file with 8 additions and 5 deletions.
    13 changes: 8 additions & 5 deletions starship.toml
    Original file line number Diff line number Diff line change
    @@ -1,8 +1,11 @@
    # SOURCE: https://starship.rs/config
    # SOURCE: https://starship.rs/config

    # Replace the "❯"
    [character]
    success_symbol = "[λ](green)"
    # Timeout for commands executed by starship (ms)
    command_timeout = 1000

    # Replace the "❯"
    [character]
    success_symbol = "[λ](green)"
    error_symbol = "[λ](red)"

    [username]
    @@ -28,4 +31,4 @@ disabled = true

    # Show python version starting with venv
    [python]
    python_binary = ["./venv/bin/python", "python3", "python", "python2"]
    python_binary = ["./venv/bin/python", "python3", "python", "python2"]
  28. pythoninthegrass renamed this gist Sep 14, 2021. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  29. pythoninthegrass revised this gist Sep 14, 2021. 1 changed file with 0 additions and 3 deletions.
    3 changes: 0 additions & 3 deletions .bashrc
    Original file line number Diff line number Diff line change
    @@ -1,3 +0,0 @@
    # starship
    colorscript -e random # crunch
    eval "$(starship init bash)"
  30. pythoninthegrass revised this gist Sep 14, 2021. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -25,4 +25,5 @@ eval "$(starship init bash)"

    ### Further reading
    [Starship](https://starship.rs/guide/#🚀-installation)

    [How to get the most out of your Terminal | by Reagan McFarland | Medium](https://reaganmcf.medium.com/how-to-get-the-most-out-of-your-terminal-7af47f7730a3)