zsh: Add support for nix-shell

This commit is contained in:
Simon Bruder 2020-08-18 15:58:33 +02:00
parent 4c44fc1f9a
commit 0c862327c9
No known key found for this signature in database
GPG key ID: 6F03E0000CC5B62F
4 changed files with 8 additions and 0 deletions

3
.gitmodules vendored
View file

@ -19,3 +19,6 @@
[submodule "dircolors-solarized"] [submodule "dircolors-solarized"]
path = dircolors-solarized path = dircolors-solarized
url = https://github.com/seebi/dircolors-solarized url = https://github.com/seebi/dircolors-solarized
[submodule "zsh-nix-shell"]
path = zsh-nix-shell
url = https://github.com/chisui/zsh-nix-shell

1
home/.zsh/zsh-nix-shell Symbolic link
View file

@ -0,0 +1 @@
../../zsh-nix-shell

View file

@ -46,6 +46,9 @@ command -v fzf-share >/dev/null && source $(fzf-share)/key-bindings.zsh
## Color switcher ## Color switcher
alias dynamic-colors="~/.dynamic-colors/bin/dynamic-colors" alias dynamic-colors="~/.dynamic-colors/bin/dynamic-colors"
## Support for nix-shell
source $HOME/.zsh/zsh-nix-shell/nix-shell.plugin.zsh
## Timer ## Timer
function timer() ( function timer() (
if [ -z "$1" ] || [ -z "$2" ]; then if [ -z "$1" ] || [ -z "$2" ]; then

1
zsh-nix-shell Submodule

@ -0,0 +1 @@
Subproject commit 6ae30544a284301026d4ee1c437b44f5d1a9952e