From c84e05a3be570310d515c52285bdc3ce49a2349d Mon Sep 17 00:00:00 2001 From: Daiderd Jordan Date: Tue, 21 Aug 2018 23:42:15 +0200 Subject: [PATCH] lnl: update alias functions --- modules/examples/lnl.nix | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/modules/examples/lnl.nix b/modules/examples/lnl.nix index b198cdc..51f0e55 100644 --- a/modules/examples/lnl.nix +++ b/modules/examples/lnl.nix @@ -159,15 +159,15 @@ ''; programs.zsh.loginShellInit = '' - :l() { - if [ ! -e .envrc ]; then - echo 'use nix' > .envrc - direnv edit . - fi - eval "$(direnv hook zsh)" + :a() { + nix repl ''${@:-} } - :r() { + :u() { + nix run -f '' "$@" + } + + :d() { if [ -z "$IN_NIX_SHELL" ]; then eval "$(direnv hook zsh)" else @@ -175,10 +175,6 @@ fi } - :a() { - nix repl ''${@:-} - } - xi() { curl -F 'f:1=<-' ix.io } @@ -187,6 +183,10 @@ ${pkgs.darwin.cctools}/bin/install_name_tool "$@" } + nm() { + ${pkgs.darwin.cctools}/bin/nm "$@" + } + otool() { ${pkgs.darwin.cctools}/bin/otool "$@" }