From 28a66717057232e5c575d5f9cc4483b866358068 Mon Sep 17 00:00:00 2001 From: RealStickman Date: Thu, 6 May 2021 13:31:49 +0200 Subject: [PATCH] Add elvish config --- arch-config/.elvish/rc.elv | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 arch-config/.elvish/rc.elv diff --git a/arch-config/.elvish/rc.elv b/arch-config/.elvish/rc.elv new file mode 100644 index 00000000..94e7d5d1 --- /dev/null +++ b/arch-config/.elvish/rc.elv @@ -0,0 +1,36 @@ +############################## +##### prompt ##### +############################## +# "tilde-abbr" abbreviates home directory to a tilde. +# default prompt +#edit:prompt = { styled (whoami) bold red; styled ✸ bold yellow; styled (hostname) cyan; put ' '; tilde-abbr $pwd; put '❱ ' } +# custom prompt +edit:prompt = { styled (whoami) bold red; styled ✸ bold yellow; styled (hostname) cyan; put ' '; styled (tilde-abbr $pwd) yellow; put '> ' } + +# "constantly" returns a function that always writes the same value(s) to +# output; "styled" writes styled output. +# default rightprompt +#edit:rprompt = (constantly (styled (whoami)✸(hostname) inverse)) +# custom rightprompt +edit:rprompt = (constantly (put '')) + +############################## +##### completion ##### +############################## +# make completion case insensitive +edit:completion:matcher[''] = [seed]{ edit:match-prefix $seed &ignore-case=$true } + +############################## +##### aliases ##### +############################## +# ls colored output +fn ls [@a]{ e:ls --color $@a } + +# emacs in terminal +fn emacs [@a]{ /usr/bin/emacs --no-window-system $@a } + +############################## +##### other ##### +############################## +# execute stuff +neofetch