# How to reset current repl settings to default?

**URL:** <https://discourse.julialang.org/t/how-to-reset-current-repl-settings-to-default/97392>\
**Category:** General Usage\
**Created:** [April 12, 2023, 12:53pm UTC](https://discourse.julialang.org/t/how-to-reset-current-repl-settings-to-default/97392 "2023-04-12T12:53:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrey2185](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/andrey2185/32/9889_2.png) [@andrey2185](https://discourse.julialang.org/u/andrey2185)\
**Post date:** [April 12, 2023, 12:53pm UTC](https://discourse.julialang.org/t/how-to-reset-current-repl-settings-to-default/97392/1 "2023-04-12T12:53:09Z")

</div>

```julia
julia> Base.active_repl.interface.modes[1].prompt = "my_prompt> "
my_prompt> # Is there a universal way to fallback to default prompt?
my_prompt> # without Base.active_repl.interface.modes[1].prompt = "julia> "
my_prompt> # for example `Base.active_repl.reset()` and go to `julia>`
julia> 

```

---

<div class="post-metadata">

**Author:** ![andrey2185](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/andrey2185/32/9889_2.png) [@andrey2185](https://discourse.julialang.org/u/andrey2185)\
**Post date:** [April 12, 2023, 1:01pm UTC](https://discourse.julialang.org/t/how-to-reset-current-repl-settings-to-default/97392/2 "2023-04-12T13:01:37Z")

</div>

This method should be universal to fallback to  
`(Main.MyModule) julia>` and `juia>`

I thought about saving the previous state of repl, because it could be changed the same way as mine.

Any other ideas?
