1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-12-15 17:51:01 +00:00

lnl: update example with promptInit

This commit is contained in:
Daiderd Jordan 2016-12-16 15:51:36 +01:00
parent 23d3784589
commit 5c1fc8a85c
No known key found for this signature in database
GPG key ID: D02435D05B810C96

View file

@ -1,25 +1,5 @@
{ config, lib, pkgs, ... }:
{
environment.systemPackages =
[ pkgs.lnl.tmux
pkgs.lnl.vim
pkgs.curl
pkgs.fzf
pkgs.gettext
pkgs.git
pkgs.jq
pkgs.silver-searcher
pkgs.nix-repl
pkgs.nox
];
services.nix-daemon.enable = true;
services.nix-daemon.tempDir = "/nix/tmp";
services.activate-system.enable = true;
system.defaults.NSGlobalDomain.AppleKeyboardUIMode = 3;
system.defaults.NSGlobalDomain.ApplePressAndHoldEnabled = false;
system.defaults.NSGlobalDomain.InitialKeyRepeat = 10;
@ -41,6 +21,26 @@
system.defaults.trackpad.Clicking = true;
environment.systemPackages =
[ pkgs.lnl.tmux
pkgs.lnl.vim
pkgs.curl
pkgs.fzf
pkgs.gettext
pkgs.git
pkgs.jq
pkgs.silver-searcher
pkgs.nix-repl
pkgs.nox
];
services.nix-daemon.enable = true;
services.nix-daemon.tempDir = "/nix/tmp";
services.activate-system.enable = true;
programs.tmux.enable = true;
programs.tmux.loginShell = "${config.programs.zsh.shell} -l";
programs.tmux.enableSensible = true;
@ -56,6 +56,14 @@
'';
programs.zsh.enable = true;
programs.zsh.enableBashCompletion = true;
programs.zsh.promptInit = ''
autoload -U promptinit && promptinit
PROMPT='%B%(?..%? )%b '
RPROMPT='%F{green}%~%f'
'';
programs.zsh.shellInit = ''
cfg=$HOME/.nixpkgs/darwin-config.nix
@ -64,9 +72,6 @@
'';
programs.zsh.loginShellInit = ''
autoload -U promptinit && promptinit
PROMPT='%B%(?..%? )%b '
RPROMPT='%F{green}%~%f'
bindkey -e
setopt autocd