Skip to content

Commit 9d89f2e

Browse files
author
emily747
committed
Added setup script to static
1 parent 5ae9aef commit 9d89f2e

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

main/static/setup.sh

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)