2024-07-09 00:32:53 -05:00
|
|
|
# justfile for common household tasks
|
|
|
|
|
2025-02-09 17:28:27 -06:00
|
|
|
dotfiles_repo := "/home/jas/repos/git.hyperreal.coffee/hyperreal/dotfiles"
|
2025-01-10 12:05:49 -06:00
|
|
|
homedir := "/home/jas"
|
|
|
|
configdir := "/home/jas/.config"
|
2024-07-09 00:32:53 -05:00
|
|
|
|
2024-10-26 13:30:45 -05:00
|
|
|
refresh-doom-emacs:
|
|
|
|
rm -rf {{configdir}}/emacs
|
|
|
|
git clone --depth 1 https://github.com/doomemacs/doomemacs {{configdir}}/emacs
|
|
|
|
{{configdir}}/emacs/bin/doom install --force --verbose
|
2024-07-09 00:32:53 -05:00
|
|
|
|
2024-10-26 13:30:45 -05:00
|
|
|
deploy-dotfiles:
|
|
|
|
cp -rfv {{dotfiles_repo}}/just/.justfile {{homedir}}
|
|
|
|
cp -rfv {{dotfiles_repo}}/doom/.doom.d {{homedir}}
|
|
|
|
cp -fv {{dotfiles_repo}}/zsh/.zshrc {{homedir}}
|
|
|
|
cp -rfv {{dotfiles_repo}}/zsh/.zshrc.d {{homedir}}
|
|
|
|
cp -rfv {{dotfiles_repo}}/config/.config/bat {{configdir}}
|
|
|
|
cp -rfv {{dotfiles_repo}}/config/.config/git {{configdir}}
|
2025-02-09 17:28:27 -06:00
|
|
|
cp -rfv {{dotfiles_repo}}/config/.config/ghostty {{configdir}}
|
2024-10-26 13:30:45 -05:00
|
|
|
cp -fv {{dotfiles_repo}}/config/.config/starship.toml {{configdir}}
|
|
|
|
cp -rfv {{dotfiles_repo}}/config/.config/zellij {{configdir}}
|
2024-08-03 23:34:48 -05:00
|
|
|
|
2024-10-26 13:30:45 -05:00
|
|
|
save-dotfiles:
|
|
|
|
cp -fv {{homedir}}/.justfile {{dotfiles_repo}}/just/
|
|
|
|
cp -rfv {{homedir}}/.doom.d {{dotfiles_repo}}/doom/
|
|
|
|
cp -fv {{homedir}}/.zshrc {{dotfiles_repo}}/zsh/
|
|
|
|
cp -rfv {{homedir}}/.zshrc.d {{dotfiles_repo}}/zsh/
|
|
|
|
cp -rfv {{configdir}}/bat {{dotfiles_repo}}/config/.config/
|
|
|
|
cp -rfv {{configdir}}/git {{dotfiles_repo}}/config/.config/
|
2025-02-09 17:28:27 -06:00
|
|
|
cp -rfv {{configdir}}/ghostty {{dotfiles_repo}}/config/.config/
|
2024-10-26 13:30:45 -05:00
|
|
|
cp -fv {{configdir}}/starship.toml {{dotfiles_repo}}/config/.config/
|
|
|
|
cp -rfv {{configdir}}/zellij {{dotfiles_repo}}/config/.config/
|
2024-07-09 00:32:53 -05:00
|
|
|
|
2024-10-26 13:30:45 -05:00
|
|
|
clean-dotfiles:
|
|
|
|
rm -fv {{homedir}}/.justfile
|
|
|
|
rm -rfv {{homedir}}/.doom.d
|
|
|
|
rm -fv {{homedir}}/.zshrc
|
|
|
|
rm -rfv {{homedir}}/.zshrc.d
|
|
|
|
rm -rfv {{configdir}}/bat
|
|
|
|
rm -rfv {{configdir}}/git
|
2025-02-09 17:28:27 -06:00
|
|
|
rm -rfv {{configdir}}/ghostty
|
2024-10-26 13:30:45 -05:00
|
|
|
rm -fv {{configdir}}/starship.toml
|
|
|
|
rm -rfv {{configdir}}/zellij
|
2024-10-27 10:33:44 -05:00
|
|
|
|
2024-11-18 11:34:15 -06:00
|
|
|
go-tools:
|
2024-11-18 11:36:01 -06:00
|
|
|
go install golang.org/x/tools/gopls@latest
|
2024-11-18 11:34:15 -06:00
|
|
|
go install github.com/fatih/gomodifytags@latest
|
|
|
|
go install github.com/cweill/gotests/...@latest
|
|
|
|
go install github.com/x-motemen/gore/cmd/gore@latest
|
|
|
|
go install golang.org/x/tools/cmd/guru@latest
|
|
|
|
|
|
|
|
python-tools:
|
2025-01-19 02:33:46 -06:00
|
|
|
pipx install --include-deps ansible --force
|
|
|
|
pipx install black --force
|
|
|
|
pipx install bpython --force
|
|
|
|
pipx install pyflakes --force
|
|
|
|
pipx install isort --force
|
|
|
|
pipx install pipenv --force
|
|
|
|
pipx install nose --force
|
|
|
|
pipx install pytest --force
|
|
|
|
pipx install uv --force
|
|
|
|
pipx install get-def --force
|
|
|
|
pipx install print-links --force
|
|
|
|
pipx install print-wp-sources --force
|
2025-02-09 17:28:27 -06:00
|
|
|
pipx install get-def --force
|
|
|
|
pipx install dl-sh-source --force
|
|
|
|
pipx install dl-wp-pdf --force
|
|
|
|
pipx install bpython bs4
|
2025-01-19 02:33:46 -06:00
|
|
|
pipx inject bpython requests
|
|
|
|
pipx inject bpython rich
|
|
|
|
pipx inject bpython qbittorrent-api
|
2024-11-18 11:34:15 -06:00
|
|
|
|
|
|
|
webdev-tools:
|
|
|
|
sudo npm install -g @catppuccin/inkcat
|
|
|
|
sudo npm install -g prettier
|
|
|
|
sudo npm install -g js-beautify
|
|
|
|
sudo npm install -g stylelint
|
2025-02-09 17:28:27 -06:00
|
|
|
sudo apt install -y tidy
|
2024-11-18 11:34:15 -06:00
|
|
|
|
|
|
|
rustup:
|
|
|
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
|
2025-01-10 12:05:49 -06:00
|
|
|
|
2025-01-19 02:33:46 -06:00
|
|
|
tailscale:
|
|
|
|
curl -fsSL https://tailscale.com/install.sh | sh
|
|
|
|
sudo tailscale up
|
|
|
|
|
|
|
|
neovim:
|
|
|
|
sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \
|
|
|
|
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
|
|
|
|
|
|
|
|
mkdir -p "${HOME}/.config/nvim"
|
|
|
|
wget https://files.hyperreal.coffee/init.vim -O "${HOME}/.config/nvim/init.vim"
|
2025-02-09 17:28:27 -06:00
|
|
|
nvim +PlugInstall +q +q
|
2025-01-19 02:33:46 -06:00
|
|
|
|
|
|
|
neovim-root:
|
|
|
|
sudo sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \
|
|
|
|
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
|
|
|
|
|
|
|
|
sudo mkdir -p /root/.config/nvim
|
|
|
|
sudo wget https://files.hyperreal.coffee/init.vim -O /root/.config/nvim/init.vim
|
2025-02-09 17:28:27 -06:00
|
|
|
sudo nvim +PlugInstall +q +q
|