# How to change "julia\>" prompt to "\>" in console and vscode?

**URL:** https://discourse.julialang.org/t/how-to-change-julia-prompt-to-in-console-and-vscode/130861
**Category:** General Usage
**Tags:** repl
**Created:** [July 19, 2025, 1:44am UTC](https://discourse.julialang.org/t/how-to-change-julia-prompt-to-in-console-and-vscode/130861 "2025-07-19T01:44:39Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Alex1](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/alex1/32/11771_2.png) [@Alex1](https://discourse.julialang.org/u/Alex1)
#### Post date: [July 19, 2025, 1:44am UTC](https://discourse.julialang.org/t/how-to-change-julia-prompt-to-in-console-and-vscode/130861/1 "2025-07-19T01:44:39Z")

</div>

And hide Julia initial info too, so the repl will be nice and clean.

---

<div class="post-metadata">

### Author: ![technocrat](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/technocrat/32/220947_2.png) [@technocrat](https://discourse.julialang.org/u/technocrat)
#### Post date: [July 19, 2025, 2:12am UTC](https://discourse.julialang.org/t/how-to-change-julia-prompt-to-in-console-and-vscode/130861/2 "2025-07-19T02:12:41Z")

</div>

```julia
# Set the prompt using environment variable
ENV["JULIA_PROMPT"] = "> "

# Also try the REPL approach as backup
using REPL

if isinteractive()
    atreplinit() do repl
        try
            repl.interface = REPL.setup_interface(repl)
            repl.interface.modes[1].prompt = "> "
        catch
            # If this fails, the environment variable should still work
        end
    end
end

```

1. Shell environment variable: JULIA\_PROMPT="\> " in your ~/.zshrc

2. Alias for splash screen: julia --quiet --banner=no

---

<div class="post-metadata">

### Author: ![Alex1](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/alex1/32/11771_2.png) [@Alex1](https://discourse.julialang.org/u/Alex1)
#### Post date: [July 19, 2025, 2:27am UTC](https://discourse.julialang.org/t/how-to-change-julia-prompt-to-in-console-and-vscode/130861/3 "2025-07-19T02:27:40Z")

</div>

Thanks, I tried `JULIA_PROMPT` but seems like it doesn’t work? (the second approach doesn’t work ether).

```julia
bash> echo $JULIA_PROMPT     
> 
bash> julia
               _
   _ _ _(_)_ | Documentation: https://docs.julialang.org
  (_) | (_) (_) |
   _ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` | |
  | | |_| | | | (_| | | Version 1.11.4 (2025-03-10)
 _/ |\ __'_|_|_|\__'_| | Built by Homebrew (v1.11.4)
|__/ |

julia> "Hi"
"Hi"

julia> ENV["JULIA_PROMPT"] = "> "
"> "

julia> "Hi"
"Hi"

julia>

```

---

<div class="post-metadata">

### Author: ![technocrat](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/technocrat/32/220947_2.png) [@technocrat](https://discourse.julialang.org/u/technocrat)
#### Post date: [July 19, 2025, 3:20am UTC](https://discourse.julialang.org/t/how-to-change-julia-prompt-to-in-console-and-vscode/130861/4 "2025-07-19T03:20:17Z")

</div>

That’s because dummy here left out the part of the startup.jl file

```julia
# Set the prompt using environment variable
ENV["JULIA_PROMPT"] = "> "

# Also try the REPL approach as backup
using REPL

if isinteractive()
    atreplinit() do repl
        try
            repl.interface = REPL.setup_interface(repl)
            repl.interface.modes[1].prompt = "> "
        catch
            # If this fails, the environment variable should still work
        end
    end
end

```

This goes in your ~/.julia/config directory

---

<div class="post-metadata">

### Author: ![Joris\_Pinkse](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/joris_pinkse/32/216398_2.png) [@Joris\_Pinkse](https://discourse.julialang.org/u/Joris_Pinkse)
#### Post date: [July 19, 2025, 3:25am UTC](https://discourse.julialang.org/t/how-to-change-julia-prompt-to-in-console-and-vscode/130861/5 "2025-07-19T03:25:59Z")

</div>

[Home · OhMyREPL](https://kristofferc.github.io/OhMyREPL.jl/latest/) does that plus a bunch more.

---

<div class="post-metadata">

### Author: ![Alex1](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/alex1/32/11771_2.png) [@Alex1](https://discourse.julialang.org/u/Alex1)
#### Post date: [July 19, 2025, 4:15am UTC](https://discourse.julialang.org/t/how-to-change-julia-prompt-to-in-console-and-vscode/130861/6 "2025-07-19T04:15:47Z")

</div>

> [@technocrat](#):
>
> ```julia-auto
> # Set the prompt using environment variable
> ENV["JULIA_PROMPT"] = "> "
> 
> # Also try the REPL approach as backup
> using REPL
> 
> if isinteractive()
> atreplinit() do repl
> try
> repl.interface = REPL.setup_interface(repl)
> repl.interface.modes[1].prompt = "> "
> catch
> # If this fails, the environment variable should still work
> end
> end
> end
> 
> ```

Thanks, adding it to `~/.julia/config/startup.jl` solved the prmpt.

As for removing the banner - isn’t there any config/env option to supress it? adding `--quiet` is not convenient

---

<div class="post-metadata">

### Author: ![technocrat](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/technocrat/32/220947_2.png) [@technocrat](https://discourse.julialang.org/u/technocrat)
#### Post date: [July 19, 2025, 4:37am UTC](https://discourse.julialang.org/t/how-to-change-julia-prompt-to-in-console-and-vscode/130861/7 "2025-07-19T04:37:45Z")

</div>

Didn’t find one, but

```julia
alias julia="julia --quiet --banner=no"

```

in `.zshrc` is a problem?

---

<div class="post-metadata">

### Author: ![Alex1](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/alex1/32/11771_2.png) [@Alex1](https://discourse.julialang.org/u/Alex1)
#### Post date: [July 19, 2025, 5:45am UTC](https://discourse.julialang.org/t/how-to-change-julia-prompt-to-in-console-and-vscode/130861/8 "2025-07-19T05:45:37Z")

</div>

> [@technocrat](#):
>
> `alias julia="julia --quiet --banner=no"`

Thanks, yes that’s reasonable solution.

---

<div class="post-metadata">

### Author: ![NonDairyNeutrino](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nondairyneutrino/32/221496_2.png) [@NonDairyNeutrino](https://discourse.julialang.org/u/NonDairyNeutrino)
#### Post date: [July 19, 2025, 4:19pm UTC](https://discourse.julialang.org/t/how-to-change-julia-prompt-to-in-console-and-vscode/130861/9 "2025-07-19T16:19:39Z")

</div>

To add on to @Joris_Pinkse, changing the prompt is a [dedicated example](https://kristofferc.github.io/OhMyREPL.jl/latest/features/prompt/) as well.

```julia
OhMyREPL.input_prompt!("> ", :magenta)
OhMyREPL.output_prompt!("> ", :red)

```

Additionally,

> If the first argument instead is a function, it will be run every time the prompt wants to update which allows for more dynamic behavior.
