Add elvish config
This commit is contained in:
parent
ba9e536e7c
commit
28a6671705
36
arch-config/.elvish/rc.elv
Normal file
36
arch-config/.elvish/rc.elv
Normal 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
|
Loading…
Reference in New Issue
Block a user