From 0c862327c98d92314b142aed872c647d9b4d4dcb Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Tue, 18 Aug 2020 15:58:33 +0200 Subject: [PATCH] zsh: Add support for nix-shell --- .gitmodules | 3 +++ home/.zsh/zsh-nix-shell | 1 + home/.zshrc.local | 3 +++ zsh-nix-shell | 1 + 4 files changed, 8 insertions(+) create mode 120000 home/.zsh/zsh-nix-shell create mode 160000 zsh-nix-shell diff --git a/.gitmodules b/.gitmodules index e64c295..0a00328 100644 --- a/.gitmodules +++ b/.gitmodules @@ -19,3 +19,6 @@ [submodule "dircolors-solarized"] path = 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 diff --git a/home/.zsh/zsh-nix-shell b/home/.zsh/zsh-nix-shell new file mode 120000 index 0000000..4cb2fa6 --- /dev/null +++ b/home/.zsh/zsh-nix-shell @@ -0,0 +1 @@ +../../zsh-nix-shell \ No newline at end of file diff --git a/home/.zshrc.local b/home/.zshrc.local index a7054a6..59ffa60 100644 --- a/home/.zshrc.local +++ b/home/.zshrc.local @@ -46,6 +46,9 @@ command -v fzf-share >/dev/null && source $(fzf-share)/key-bindings.zsh ## Color switcher alias dynamic-colors="~/.dynamic-colors/bin/dynamic-colors" +## Support for nix-shell +source $HOME/.zsh/zsh-nix-shell/nix-shell.plugin.zsh + ## Timer function timer() ( if [ -z "$1" ] || [ -z "$2" ]; then diff --git a/zsh-nix-shell b/zsh-nix-shell new file mode 160000 index 0000000..6ae3054 --- /dev/null +++ b/zsh-nix-shell @@ -0,0 +1 @@ +Subproject commit 6ae30544a284301026d4ee1c437b44f5d1a9952e