elvish_config/rc.elv

45 lines
1.1 KiB
Plaintext
Raw Normal View History

2021-09-01 13:55:25 +00:00
#set-env BAT_THEME Coldark-Cold
set-env BAT_PAGER 'less -RF'
set-env EDITOR vim
set-env VIEW 'vim -R'
set-env CURRENT_SHELL 'elvish'
set-env STARSHIP_CONFIG ~/.config/starship/starship.toml
2021-10-13 18:46:34 +00:00
set paths = [$@paths /home/benjamin/bin /home/benjamin/Go/bin ]
{
use moi/util/list
if (list:includes-not /usr/local/bin $paths) {
2021-10-13 18:46:34 +00:00
set paths = [ $@paths /usr/local/bin ]
}
2020-03-13 14:03:36 +00:00
}
2021-10-13 18:46:34 +00:00
set notify-bg-job-success = $false
2020-03-13 14:03:36 +00:00
2021-10-13 18:46:34 +00:00
set edit:insert:binding[Tab] = { edit:completion:smart-start; edit:navigation:trigger-filter }
set edit:insert:binding[Ctrl-H] = $edit:histlist:start~
2020-03-13 14:03:36 +00:00
2021-10-13 18:46:34 +00:00
set edit:prompt = { go-prompt }
set edit:rprompt = { nop }
#eval (starship init elvish)
eval (starship init elvish --print-full-init | upgrade-scripts-for-0.17 -lambda | slurp)
2020-03-13 14:03:36 +00:00
# Carapace completion: https://github.com/rsteube/carapace-bin
eval (carapace _carapace|slurp)
# On ajoute les modules natifs que jutilise beaucoup
use str
use re
use math
2020-03-13 14:03:36 +00:00
use moi/completion
use moi/alias
use moi/util/common
use moi/util/format
{
use ./aliases/get-uid uid
if (not (uid:-is-root)) {
tache search -d 2w not del
}
2020-07-22 09:24:43 +00:00
}