Rationnalisation des différents éditeurs par défaut + correction des nom VPN

This commit is contained in:
Benjamin VAUDOUR 2022-09-01 12:17:24 +02:00
parent 7a55097eee
commit 9a4b757926
3 changed files with 32 additions and 23 deletions

View File

@ -1,16 +1,25 @@
#var cmd = $e:nvim~ # ÉDITEURS DISPOS
#var cmd = $e:helix~ #fn ce {|@argv| $e:emacs~ $@argv }
var cmd = $e:kak~ #fn ce {|@argv| $e:helix~ $@argv }
#var cmd = $e:emacs~ fn ce {|@argv| $e:kak~ $@argv }
#fn ce {|@argv| $e:nvim~ $@argv }
#fn ce {|@argv| $e:vim~ $@argv }
edit:add-var vi~ {|@argv| $cmd $@argv } # LECTURE SEULE
edit:add-var vb~ {|@argv| $cmd $@argv ~/.bashrc } ## emacs
edit:add-var vc~ {|@argv| $cmd $@argv ~/.vimrc } #fn cv {|@argv| ce $@argv --eval '(setq buffer-read-only)' }
edit:add-var ve~ {|@argv| $cmd $@argv ~/.config/elvish/rc.elv } ## helix (pas le lecture seule pour le moment)
edit:add-var vf~ {|@argv| $cmd $@argv ~/.config/fish/config.fish } #fn cv {|@argv| ce $@argv }
edit:add-var vp~ {|@argv| $cmd $@argv PKGBUILD } # kak
#edit:add-var vv~ {|@argv| $cmd -R $@argv } # vim/nvim fn cv {|@argv| ce -ro $@argv }
edit:add-var vv~ {|@argv| $cmd -ro $@argv } # kak ## nvim/vim
#edit:add-var vv~ {|@argv| $cmd $@argv } # helix - pas de mode lecture seule pour le moment #fn cv {|@argv| ce -R $@argv }
#edit:add-var vv~ {|@argv| $cmd $@argv --eval '(setq buffer-read-only t)' } # emacs
edit:add-var vz~ {|@argv| $cmd $@argv ~/.zshrc } edit:add-var vi~ $ce~
edit:add-var vb~ {|@argv| ce $@argv ~/.bashrc }
edit:add-var vc~ {|@argv| ce $@argv ~/.vimrc }
edit:add-var ve~ {|@argv| ce $@argv ~/.config/elvish/rc.elv }
edit:add-var vf~ {|@argv| ce $@argv ~/.config/fish/config.fish }
edit:add-var vp~ {|@argv| ce $@argv PKGBUILD }
edit:add-var vv~ $cv~
edit:add-var vz~ {|@argv| ce $@argv ~/.zshrc }

View File

@ -12,9 +12,9 @@ var shortcut = [
&lu=luence-wg &lu=luence-wg
&lu2=luence-ovpn &lu2=luence-ovpn
&cli=lunce-client &cli=lunce-client
&nl=proton-nl5 &nl=proton_nl5
&jp=proton-jp2 &jp=proton_jp2
&us=proton-us3 &us=proton_us3
] ]
var next = [ var next = [
@ -22,9 +22,9 @@ var next = [
&fr.kaosx.cf=luence-wg &fr.kaosx.cf=luence-wg
&luence-wg=luence-client &luence-wg=luence-client
&luence-ovpn=luence-client &luence-ovpn=luence-client
&luence-client=proton-nl5 &luence-client=proton_nl5
&proton-nl5=proton-us3 &proton_nl5=proton_us3
&proton-us3=proton-jp2 &proton_us3=proton_jp2
] ]
fn -list {|&active=$false| fn -list {|&active=$false|

4
rc.elv
View File

@ -2,8 +2,8 @@
set-env BAT_PAGER 'less -RF' set-env BAT_PAGER 'less -RF'
#set-env EDITOR vim #set-env EDITOR vim
set-env EDITOR kak set-env EDITOR kak
#set-env VIEW 'vim -R' #set-env VISUAL 'vim -R'
set-env VIEW 'kak -ro' set-env VISUAL 'kak -ro'
set-env CURRENT_SHELL 'elvish' set-env CURRENT_SHELL 'elvish'
set-env STARSHIP_CONFIG ~/.config/starship/starship.toml set-env STARSHIP_CONFIG ~/.config/starship/starship.toml
set-env PERL5LIB /home/benjamin/perl5/lib/perl5 set-env PERL5LIB /home/benjamin/perl5/lib/perl5