You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
727 B
33 lines
727 B
{
|
|
|
|
pkgs ? (import ../pkgs.nix).stable {},
|
|
config,
|
|
|
|
}: rec {
|
|
|
|
zshrc = pkgs.writeTextDir ".zshrc" ''
|
|
# Import before anything else, so that we have the full PATH available for
|
|
# everything following
|
|
. /etc/profile.d/nix-daemon.sh
|
|
|
|
# oh-my-zsh
|
|
export ZSH=${pkgs.oh-my-zsh}/share/oh-my-zsh
|
|
ZSH_CUSTOM=${./custom}
|
|
ZSH_THEME=mediocregopher
|
|
DISABLE_AUTO_UPDATE=true
|
|
plugins=(git vi-mode)
|
|
source $ZSH/oh-my-zsh.sh
|
|
|
|
export TERMINFO_DIRS=${pkgs.ncurses}/lib/terminfo:${./terminfo}
|
|
|
|
export BROWSER=${config.browser}
|
|
|
|
. ${./zshrc}
|
|
. ${./aliases}
|
|
'';
|
|
|
|
zsh = pkgs.writeScriptBin "zsh" ''
|
|
#!${pkgs.bash}/bin/bash
|
|
ZDOTDIR=${zshrc} exec ${pkgs.zsh}/bin/zsh "$@"
|
|
'';
|
|
}
|
|
|