configs/arch-config/.elvish/rc.elv
2021-05-06 13:31:49 +02:00

37 lines
1.2 KiB
Plaintext

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