aboutsummaryrefslogtreecommitdiffstats
path: root/.iex.exs
diff options
context:
space:
mode:
authorkatherine <ageha@airen-no-jikken.icu>2020-09-09 10:03:57 -0700
committerkatherine <ageha@airen-no-jikken.icu>2020-09-09 10:03:57 -0700
commitbb88edcb0cbc6d10cadd37bde6833e79c7cab531 (patch)
treef505e8cf60e0b7073c0af2a7628e06d03d41464b /.iex.exs
parentd74f49bb93b14d0cfe18f76ba6e02716bc883c5a (diff)
downloaddotfiles-bb88edcb0cbc6d10cadd37bde6833e79c7cab531.tar.gz
add rpass func
Diffstat (limited to '.iex.exs')
-rw-r--r--.iex.exs28
1 files changed, 27 insertions, 1 deletions
diff --git a/.iex.exs b/.iex.exs
index fcd3931..780c15d 100644
--- a/.iex.exs
+++ b/.iex.exs
@@ -48,7 +48,33 @@ defmodule IExConfigInit do
"]\n",
"└:",
:reset
- ] |> IO.ANSI.format |> IO.chardata_to_string
+ ] |> IO.ANSI.format |> IO.chardata_to_string,
+ alive_prompt: [
+ # "\e[1A",
+ "\e[G", # ANSI CHA, move cursor to column 1
+ :bright,
+ :white,
+ "┌[(",
+ :blue,
+ "%node",
+ :white,
+ ")",
+ :magenta,
+ (if user, do: user <> "@", else: ""),
+ "elixir-",
+ Elixir.System.version,
+ "@",
+ hostname,
+ " ",
+ :blue,
+ dir,
+ :white,
+ "]\n",
+ "└:",
+ :reset
+ ] |> IO.ANSI.format |> IO.chardata_to_string,
+ continuation_prompt: " ",
+ alive_continuation_prompt: " "
)
end