2021-09-01 13:55:25 +00:00
|
|
|
|
#set-env BAT_THEME Coldark-Cold
|
2021-08-24 18:44:01 +00:00
|
|
|
|
set-env BAT_PAGER 'less -RF'
|
2023-03-20 09:26:02 +00:00
|
|
|
|
set-env EXA_COLORS 'da=36:*.pdf=4:*.doc=4:*.xls=4:*.docx=4:*.xlsx=4:*.odt=4:*.ods=4'
|
2024-02-11 18:37:36 +00:00
|
|
|
|
#set-env EDITOR nvim
|
|
|
|
|
set-env EDITOR vim
|
2023-03-20 09:26:02 +00:00
|
|
|
|
#set-env EDITOR kak
|
|
|
|
|
#set-env EDITOR hx
|
2024-02-11 18:37:36 +00:00
|
|
|
|
#set-env VISUAL 'nvim -R'
|
|
|
|
|
set-env VISUAL 'vim -R'
|
2023-03-20 09:26:02 +00:00
|
|
|
|
#set-env VISUAL 'kak -ro'
|
|
|
|
|
#set-env VISUAL hx
|
2021-08-24 18:44:01 +00:00
|
|
|
|
set-env CURRENT_SHELL 'elvish'
|
2021-12-24 13:50:36 +00:00
|
|
|
|
set-env STARSHIP_CONFIG ~/.config/starship/starship.toml
|
2022-01-01 13:05:36 +00:00
|
|
|
|
set-env PERL5LIB /home/benjamin/perl5/lib/perl5
|
2023-04-26 08:29:20 +00:00
|
|
|
|
set-env NODE_OPTIONS --openssl-legacy-provider
|
2023-09-15 10:01:13 +00:00
|
|
|
|
set-env QSV_SNIFF_DELIMITER 1
|
2022-01-01 13:05:36 +00:00
|
|
|
|
set @paths = $@paths /home/benjamin/bin /home/benjamin/Go/bin /home/benjamin/perl5/bin
|
2021-08-24 18:44:01 +00:00
|
|
|
|
|
|
|
|
|
{
|
2021-12-28 11:28:59 +00:00
|
|
|
|
use framagit.org/benjamin.vaudour/elv-lib/mods/list
|
|
|
|
|
if (list:contains-not /usr/local/bin $paths) {
|
|
|
|
|
set @paths = $@paths /usr/local/bin
|
2021-08-24 18:44:01 +00:00
|
|
|
|
}
|
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
|
|
|
|
|
2022-04-13 07:27:53 +00:00
|
|
|
|
set edit:insert:binding[Tab] = { edit:completion:smart-start; edit:navigation:trigger-filter }
|
|
|
|
|
set edit:insert:binding[Ctrl-H] = $edit:histlist:start~
|
|
|
|
|
set edit:insert:binding[Ctrl-F] = $edit:move-dot-right~
|
|
|
|
|
set edit:insert:binding[Ctrl-B] = $edit:move-dot-left~
|
|
|
|
|
set edit:insert:binding[Ctrl-E] = $edit:move-dot-eol~
|
|
|
|
|
set edit:insert:binding[Ctrl-A] = $edit:move-dot-sol~
|
|
|
|
|
set edit:insert:binding[Alt-B] = $edit:move-dot-left-word~
|
|
|
|
|
set edit:insert:binding[Alt-F] = $edit:move-dot-right-word~
|
|
|
|
|
set edit:insert:binding[Alt-T] = $edit:transpose-word~
|
|
|
|
|
set edit:insert:binding[Ctrl-T] = $edit:transpose-rune~
|
|
|
|
|
set edit:insert:binding[Ctrl-P] = $edit:history:start~
|
|
|
|
|
set edit:insert:binding[Alt-Delete] = $edit:kill-word-right~
|
|
|
|
|
set edit:insert:binding[Alt-Backspace] = $edit:kill-word-left~
|
|
|
|
|
set edit:history:binding[Ctrl-P] = $edit:history:up~
|
|
|
|
|
set edit:insert:binding[Ctrl-N] = $edit:history:start~
|
|
|
|
|
set edit:history:binding[Ctrl-N] = $edit:history:down-or-quit~
|
2020-03-13 14:03:36 +00:00
|
|
|
|
|
2021-12-28 11:28:59 +00:00
|
|
|
|
#set edit:prompt = { go-prompt }
|
|
|
|
|
#set edit:rprompt = { nop }
|
|
|
|
|
|
|
|
|
|
# Starship prompt : https://starship.rs/
|
2022-04-18 05:59:08 +00:00
|
|
|
|
eval (starship init elvish)
|
|
|
|
|
#eval (starship init elvish --print-full-init | sed 's/except/catch/' | slurp)
|
2020-03-13 14:03:36 +00:00
|
|
|
|
|
2021-11-06 09:46:44 +00:00
|
|
|
|
# Carapace completion : https://github.com/rsteube/carapace-bin
|
|
|
|
|
eval (carapace _carapace|slurp)
|
|
|
|
|
|
2021-12-28 11:28:59 +00:00
|
|
|
|
# Initialisation des aliases et de l’autocomplétion
|
|
|
|
|
use framagit.org/benjamin.vaudour/elv-lib/alias
|
|
|
|
|
use framagit.org/benjamin.vaudour/elv-lib/completion
|
|
|
|
|
|
2021-12-24 13:50:36 +00:00
|
|
|
|
# On ajoute les modules natifs que j’utilise beaucoup
|
2021-12-28 11:28:59 +00:00
|
|
|
|
use math
|
2021-12-24 13:50:36 +00:00
|
|
|
|
use str
|
|
|
|
|
use re
|
2021-12-28 11:28:59 +00:00
|
|
|
|
#use framagit.org/benjamin.vaudour/elv-lib/mods/format
|
|
|
|
|
#use framagit.org/benjamin.vaudour/elv-lib/mods/list
|
|
|
|
|
#use framagit.org/benjamin.vaudour/elv-lib/mods/map
|
2021-08-24 18:44:01 +00:00
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
use ./aliases/get-uid uid
|
|
|
|
|
if (not (uid:-is-root)) {
|
|
|
|
|
tache search -d 2w not del
|
|
|
|
|
}
|
2020-07-22 09:24:43 +00:00
|
|
|
|
}
|