Add elvish config

This commit is contained in:
RealStickman 2021-05-06 13:31:49 +02:00
parent ba9e536e7c
commit 28a6671705

View File

@ -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