1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-12-14 11:57:34 +00:00

lnl: update alias functions

This commit is contained in:
Daiderd Jordan 2018-08-21 23:42:15 +02:00
parent f190254679
commit c84e05a3be
No known key found for this signature in database
GPG key ID: D02435D05B810C96

View file

@ -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 "$@"
}