diff options
author | David Morgan <djm_uk@protonmail.com> | 2024-06-06 09:42:53 +0100 |
---|---|---|
committer | David Morgan <djm_uk@protonmail.com> | 2024-06-06 09:42:53 +0100 |
commit | b7de9753da85edb193b6dd9507bb4e0dc083ea1f (patch) | |
tree | 7650dc06d89c6533eb531bb6c52810f56cb3d2ae | |
parent | 6ed84ee67e246633dc280c66f4638a899b968dc5 (diff) | |
download | dotfiles-b7de9753da85edb193b6dd9507bb4e0dc083ea1f.tar.gz |
Add Emacs alias on Darwin
-rw-r--r-- | nix-conf/home/includes/zsh.nix | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/nix-conf/home/includes/zsh.nix b/nix-conf/home/includes/zsh.nix index 4858b62..9729386 100644 --- a/nix-conf/home/includes/zsh.nix +++ b/nix-conf/home/includes/zsh.nix @@ -1,6 +1,8 @@ { config, pkgs, lib, isDarwin, ... }: let - inherit (lib) optionals; + inherit (lib) + optionalAttrs + optionals; in { home.packages = with pkgs; [ @@ -86,6 +88,9 @@ in glola = "git log --graph --pretty=\"%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%ar) %C(bold blue)<%an>%Creset\" --all"; glog = "git log --oneline --decorate --graph"; gloga = "git log --oneline --decorate --graph --all"; + } + // optionalAttrs pkgs.stdenv.isDarwin { + oemacs = "open -a /Applications/Emacs.app"; }; localVariables = { |