From ad7c7b7a4ec871f5f71bbd3e41768a98aaefda9b Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Fri, 6 Oct 2023 10:57:26 -0500 Subject: [PATCH] feat: Add nproc alias for osx --- dot_aliases.tmpl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dot_aliases.tmpl b/dot_aliases.tmpl index 45b6949..ec25204 100644 --- a/dot_aliases.tmpl +++ b/dot_aliases.tmpl @@ -12,6 +12,11 @@ alias ls=lsd alias code=codium {{- end }} +# Platform-specific aliases +{{- if eq .chezmoi.os "darwin" }} +alias nproc='sysctl -n hw.logicalcpu' +{{- end }} + # Universal aliases alias config='git --git-dir=$HOME/.cfg/ --work-tree=$HOME' alias please='sudo $(fc -ln -1)'