chore(develop): optionally block shell
This commit is contained in:
parent
bee53feee7
commit
bda32ea678
4
..develop.cmd
Executable file
4
..develop.cmd
Executable file
@ -0,0 +1,4 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
echo "Develop running... Press Enter to terminate"
|
||||
read
|
||||
16
shell.nix
16
shell.nix
@ -6,13 +6,17 @@ let
|
||||
haskellPackages = pkgs.haskellPackages;
|
||||
|
||||
develop = pkgs.writeScriptBin "develop" (import ./nix/develop.nix { inherit pkgs; } ''
|
||||
if [ -n "$ZSH_VERSION" ]; then
|
||||
autoload -U +X compinit && compinit
|
||||
autoload -U +X bashcompinit && bashcompinit
|
||||
fi
|
||||
eval "$(stack --bash-completion-script stack)"
|
||||
if [ -x .develop.cmd ]; then
|
||||
./.develop.cmd
|
||||
else
|
||||
if [ -n "$ZSH_VERSION" ]; then
|
||||
autoload -U +X compinit && compinit
|
||||
autoload -U +X bashcompinit && bashcompinit
|
||||
fi
|
||||
eval "$(stack --bash-completion-script stack)"
|
||||
|
||||
$(getent passwd $USER | cut -d: -f 7)
|
||||
$(getent passwd $USER | cut -d: -f 7)
|
||||
fi
|
||||
'');
|
||||
|
||||
inDevelop = pkgs.writeScriptBin "in-develop" ''
|
||||
|
||||
Reference in New Issue
Block a user