diff options
| author | Daiderd Jordan <daiderd@gmail.com> | 2018-08-21 23:42:15 +0200 |
|---|---|---|
| committer | Daiderd Jordan <daiderd@gmail.com> | 2018-08-21 23:42:15 +0200 |
| commit | c84e05a3be570310d515c52285bdc3ce49a2349d (patch) | |
| tree | a68a515eae64a91439e8e28c538d8655e4604ad0 /modules | |
| parent | f19025467987f01a231c11050a26219c29bde107 (diff) | |
lnl: update alias functions
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/examples/lnl.nix | 22 |
1 files 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 ''${@:-<darwinpkgs>} } - :r() { + :u() { + nix run -f '<darwinpkgs>' "$@" + } + + :d() { if [ -z "$IN_NIX_SHELL" ]; then eval "$(direnv hook zsh)" else @@ -175,10 +175,6 @@ fi } - :a() { - nix repl ''${@:-<darwinpkgs>} - } - 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 "$@" } |
