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:
parent
f190254679
commit
c84e05a3be
1 changed files with 11 additions and 11 deletions
|
@ -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 "$@"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue