Home

Awesome

elvish-base

Personal elvish files

DEPRECATION WARNING

I don't use elvish anymore, and won't fix this lib for 0.17.0+. I will still accept proper PRs if you feel like it.

Usage

You just have to put file in ~/.elvish/rc.elv and -source ~/.elvish/rc.elv

It will download every dependencies, no need to install them yourself

use epm

epm:install                              \
  &silent-if-installed=$true             \
  github.com/champii/elvish-base         \
  github.com/zzamboni/elvish-completions \
  github.com/zzamboni/elvish-modules

elvPath = $E:HOME"/.elvish"
ownPath = $elvPath"/lib/github.com/champii/elvish-base"

use github.com/champii/elvish-base/env
use github.com/champii/elvish-base/alias
use github.com/champii/elvish-base/prompt
use github.com/champii/elvish-base/bindings

-source $ownPath"/fs.elv"
-source $ownPath"/utils.elv"
-source $ownPath"/git.elv"

use github.com/zzamboni/elvish-completions:git
use github.com/zzamboni/elvish-modules/long-running-notifications
use github.com/zzamboni/elvish-modules/util

-exports- = (alias:alias:export)

Api

Signature type nomenclature follows the schema:

func_name[arg1 arg2 optionalArg?] => return_type

Optional args are achieved using optional_in~. cf map or filter implementation.

If an optional arg is not given, it will take (all)

fs

git

utils