We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5ae9aef commit 9d89f2eCopy full SHA for 9d89f2e
1 file changed
main/static/setup.sh
@@ -0,0 +1,20 @@
1
+# Installs the Nix package manager
2
+yes | sh <(curl --proto '=https' --tlsv1.2 -L https://nixos.org/nix/install) --daemon
3
+
4
+# Updates shell to have nix commands
5
+exec bash
6
7
+# Installs packages with nix
8
+nix-env -iA nixpkgs.zsh nixpkgs.neovim
9
10
+# Sets up zsh config
11
+cat << EOF > ~/.zshrc
12
+autoload -U colors && colors
13
+PS1="%{$fg[red]%}%n%{$reset_color%}@%{$fg[blue]%}%m %{$fg[yellow]%}%~ %{$reset_color%}%% "
14
+bindkey "^[[1;5C" forward-word
15
+bindkey "^[[1;5D" backward-word
16
+EOF
17
18
+# Sets up zsh as the default shell
19
+chsh -s $(which zsh)
20
0 commit comments