Skip to content

Instantly share code, notes, and snippets.

@alexhrescale
Created January 17, 2019 22:48
Show Gist options
  • Save alexhrescale/258b7854a4f3e6e73cb372ad46d00d08 to your computer and use it in GitHub Desktop.
Save alexhrescale/258b7854a4f3e6e73cb372ad46d00d08 to your computer and use it in GitHub Desktop.
quick env with virtualenv + override .zshrc + zsh theme + vim_configurable PATH fix
let
pkgs = import <nixpkgs> {};
stdenv = pkgs.stdenv;
in stdenv.mkDerivation rec {
name = "quick";
env = pkgs.buildEnv { name = name; paths = buildInputs; };
buildInputs = [
pkgs.python27Packages.virtualenv
pkgs.git
pkgs.openssl
pkgs.openssh
pkgs.wget
pkgs.moreutils
pkgs.vim_configurable
pkgs.zsh
pkgs.oh-my-zsh
pkgs.silver-searcher
];
shellHook = ''
export PATH=$(echo $PATH|tr ':' '\n'|grep -v '\-vim\-'|tr '\n' ':')
export ZSH="${pkgs.oh-my-zsh}/share/oh-my-zsh/"
export ZDOTDIR=$PWD
echo 'source $ZSH/oh-my-zsh.sh' >| $ZDOTDIR/.zshrc
export ZSH_THEME=muse
plugins=(git)
'';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment