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

37 lines
874 B
Cheetah

{{#if-installed helix}}
{{#if (eq ctx.environment "unitb")}}
alias helix = hx
{{else}}
alias hx = helix
{{/if}}
{{/if-installed}}
{{#if-installed todo.sh}}
alias t = todo.sh
{{/if-installed}}
{{#if-installed fuck}}
alias fuck = with-env {TF_ALIAS: "fuck", PYTHONIOENCODING: "utf-8"} {
thefuck (history | last 1 | get command.0)
}{{/if-installed}}
{{#if flags.unix}}
alias `shx` = sudo -E helix -c '{{dirs.config}}/helix/config.toml'
{{/if}}
{{#if-installed nix}}
alias devshell = nix develop -c $env.SHELL
{{/if-installed}}
{{#if-installed docker}}
# purge all containers
def `docker purge-containers` [] {
( docker container ls -a --format json
| lines
| each {
let id = (from json | get id);
docker container stop $id;
docker container rm $id;
}
)
}
{{/if-installed}}
def --env `silo cd` [] { silo repo | cd $in }