Created
January 17, 2019 22:48
-
-
Save alexhrescale/258b7854a4f3e6e73cb372ad46d00d08 to your computer and use it in GitHub Desktop.
quick env with virtualenv + override .zshrc + zsh theme + vim_configurable PATH fix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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