-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmake_editable.sh
More file actions
executable file
·22 lines (17 loc) · 1.08 KB
/
make_editable.sh
File metadata and controls
executable file
·22 lines (17 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/env bash
ln -sf "$HOME/code/dotfiles/pixi-global.toml" "$PIXI_HOME/manifests/pixi-global.toml"
ln -sf "$HOME/code/dotfiles/.zshenv" "$HOME/.zshenv"
[ -h "$ZDOTDIR/functions" ] || rm -fdr "$ZDOTDIR/functions"
ln -sf "$HOME/code/dotfiles/XDG_CONFIG_HOME/zsh/functions" "$ZDOTDIR/functions"
[ -h "$ZDOTDIR/zshc.d" ] || rm -fdr "$ZDOTDIR/zshrc.d"
ln -sf "$HOME/code/dotfiles/XDG_CONFIG_HOME/zsh/zshrc.d" "$ZDOTDIR/zshrc.d"
ln -sf "$HOME/code/dotfiles/XDG_CONFIG_HOME/zsh/myrc.zsh" "$ZDOTDIR/myrc.zsh"
ln -sf "$HOME/code/dotfiles/XDG_CONFIG_HOME/zsh/pre_antidote.zsh" "$ZDOTDIR/pre_antidote.zsh"
[ -h "$XDG_CONFIG_HOME/nvim" ] || rm -fdr "$XDG_CONFIG_HOME/nvim"
ln -sf "$HOME/code/dotfiles/XDG_CONFIG_HOME/nvim" "$XDG_CONFIG_HOME/nvim"
[ -h "$XDG_CONFIG_HOME/jupyter-ide" ] || rm -fdr "$XDG_CONFIG_HOME/jupyter-ide"
ln -sf "$HOME/code/dotfiles/XDG_CONFIG_HOME/jupyter-ide" "$XDG_CONFIG_HOME/jupyter-ide"
[ -h "$XDG_BIN_HOME/shims" ] || rm -fdr "$XDG_BIN_HOME/shims"
for item in "$HOME/code/dotfiles/XDG_BIN_HOME"/*; do
ln -sf "$(realpath "$item")" "$XDG_BIN_HOME/$(basename "$item")"
done