summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDaiderd Jordan <daiderd@gmail.com>2018-08-21 23:42:15 +0200
committerDaiderd Jordan <daiderd@gmail.com>2018-08-21 23:42:15 +0200
commitc84e05a3be570310d515c52285bdc3ce49a2349d (patch)
treea68a515eae64a91439e8e28c538d8655e4604ad0 /modules
parentf19025467987f01a231c11050a26219c29bde107 (diff)
lnl: update alias functions
Diffstat (limited to 'modules')
-rw-r--r--modules/examples/lnl.nix22
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 "$@"
}