You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

rc.elv 901B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. use epm
  2. use util
  3. use config
  4. fn xqt [a]{ e $E:XBPS_DISTDIR/srcpkgs/$a/template }
  5. fn r [@a]{
  6. f = (mktemp)
  7. if ?(ranger --choosedir=$f $@a) { cd (e:cat $f) }
  8. rm -f $f
  9. }
  10. fn alias [cmd @a]{ put [@b]{ (external $cmd) (explode $a) $@b } }
  11. ls~ = (alias lc)
  12. cat~ = (alias bat --paging=never)
  13. xr~ = (alias sudo xbps-remove -R)
  14. o~ = (alias gio open)
  15. -exports- = [&]
  16. edit:insert:binding[Ctrl-X] = { edit:-instant:start }
  17. {
  18. use github.com/xiaq/edit.elv/smart-matcher
  19. use theme
  20. use completers
  21. use stack
  22. use module
  23. -exports- = (module:exported $stack:)
  24. smart-matcher:apply
  25. util:add-before-readline {
  26. util:set-title (tilde-abbr $pwd) >/dev/tty
  27. }
  28. util:add-after-readline [a]{
  29. if (eq $a '') { ls } >/dev/tty
  30. util:set-title (splits ' ' $a | take 1)' '(tilde-abbr $pwd) >/dev/tty
  31. }
  32. }
  33. -override-wcwidth 🦀 2
  34. set-env GPG_TTY (tty)
  35. set-env NIMPH_TOKEN (cat ~/sns/github.key)