forked from micha-aucoin/dotfiles-devpod
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup
More file actions
executable file
·25 lines (20 loc) · 1017 Bytes
/
setup
File metadata and controls
executable file
·25 lines (20 loc) · 1017 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash
export XDG_CONFIG_HOME="$HOME"/.config
mkdir -p "$XDG_CONFIG_HOME"
mkdir -p "$XDG_CONFIG_HOME"/nixpkgs
curl -o "$XDG_CONFIG_HOME"/kube-ps1.sh https://raw.githubusercontent.com/jonmosco/kube-ps1/master/kube-ps1.sh
curl -o "$XDG_CONFIG_HOME"/tmux-completion https://raw.githubusercontent.com/Bash-it/bash-it/refs/heads/master/completion/available/tmux.completion.bash
ln -sf "$PWD/nvim" "$XDG_CONFIG_HOME"/nvim
ln -sf "$PWD/.bash_aliases" "$HOME"/.bash_aliases
ln -sf "$PWD/.bashrc" "$HOME"/.bashrc
ln -sf "$PWD/.inputrc" "$HOME"/.inputrc
ln -sf "$PWD/.tmux.conf" "$HOME"/.tmux.conf
ln -sf "$PWD/config.nix" "$XDG_CONFIG_HOME"/nixpkgs/config.nix
sudo ln -sf "$PWD/scripts/tmux-sessionizer" /usr/local/bin/
sudo apt install build-essential -y
# install Nix packages from config.nix
nix-env -iA nixpkgs.myPackages
# init u Mamba
~/.nix-profile/bin/micromamba shell init -s bash
~/.nix-profile/bin/micromamba config append channels conda-forge
~/.nix-profile/bin/micromamba create -n py311 python=3.11 -y