initial commit
This commit is contained in:
29
bootstrap/Taskfile-alpine.yml
Normal file
29
bootstrap/Taskfile-alpine.yml
Normal file
@@ -0,0 +1,29 @@
|
||||
version: '3'
|
||||
|
||||
tasks:
|
||||
default:
|
||||
desc: initialize system
|
||||
cmds:
|
||||
- task: packages
|
||||
- task: dotfiles
|
||||
- task: misc
|
||||
|
||||
packages:
|
||||
desc: install packages
|
||||
cmd: |
|
||||
sudo /sbin/apk -U add \
|
||||
tmux zsh zsh-vcs git neovim py3-pynvim stow fzf \
|
||||
> /dev/null
|
||||
|
||||
dotfiles:
|
||||
desc: install my dotfiles
|
||||
dir: $HOME
|
||||
cmds:
|
||||
- test -d dotfiles || git clone https://git.scalene.net/jswank/dotfiles.git > /dev/null
|
||||
- cd dotfiles && ./install.sh > /dev/null
|
||||
|
||||
misc:
|
||||
cmds:
|
||||
- chsh -s /bin/zsh
|
||||
- mkdir -p $HOME/.local/bin
|
||||
- curl -Ls https://github.com/marwanhawari/stew/releases/download/v0.4.0/stew-v0.4.0-linux-amd64.tar.gz | tar -xz stew -C $HOME/.local/bin
|
||||
28
bootstrap/Taskfile-ubuntu.yml
Normal file
28
bootstrap/Taskfile-ubuntu.yml
Normal file
@@ -0,0 +1,28 @@
|
||||
version: '3'
|
||||
|
||||
tasks:
|
||||
default:
|
||||
desc: initialize system
|
||||
cmds:
|
||||
- task: packages
|
||||
- task: dotfiles
|
||||
- task: misc
|
||||
|
||||
packages:
|
||||
desc: install packages
|
||||
cmds:
|
||||
- sudo /usr/bin/apt update --yes
|
||||
- sudo /usr/bin/apt install --yes tmux zsh git neovim stow fzf
|
||||
|
||||
dotfiles:
|
||||
desc: install my dotfiles
|
||||
dir: $HOME
|
||||
cmds:
|
||||
- test -d dotfiles || git clone https://git.scalene.net/jswank/dotfiles.git > /dev/null
|
||||
- cd dotfiles && ./install.sh > /dev/null
|
||||
|
||||
misc:
|
||||
cmds:
|
||||
- sudo chsh -s $(which zsh) $(whoami)
|
||||
- mkdir -p $HOME/.local/bin
|
||||
- curl -Ls https://github.com/marwanhawari/stew/releases/download/v0.4.0/stew-v0.4.0-linux-amd64.tar.gz | tar -xz stew -C $HOME/.local/bin
|
||||
26
bootstrap/Taskfile.yml
Normal file
26
bootstrap/Taskfile.yml
Normal file
@@ -0,0 +1,26 @@
|
||||
version: '3'
|
||||
|
||||
tasks:
|
||||
default:
|
||||
desc: initialize system
|
||||
cmds:
|
||||
- task: packages
|
||||
- task: dotfiles
|
||||
- task: misc
|
||||
|
||||
packages:
|
||||
desc: install packages
|
||||
cmds:
|
||||
- sudo /usr/bin/apt update --yes
|
||||
- sudo /usr/bin/apt install --yes tmux zsh git neovim stow fzf
|
||||
|
||||
dotfiles:
|
||||
desc: install my dotfiles
|
||||
dir: $HOME
|
||||
cmds:
|
||||
- test -d dotfiles || git clone https://git.scalene.net/jswank/dotfiles.git > /dev/null
|
||||
- cd dotfiles && ./install.sh > /dev/null
|
||||
|
||||
misc:
|
||||
cmds:
|
||||
- sudo chsh -s $(which zsh) $(whoami)
|
||||
14
bootstrap/bootstrap-ubuntu
Normal file
14
bootstrap/bootstrap-ubuntu
Normal file
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -o nounset
|
||||
set -o errexit
|
||||
|
||||
cd ~/
|
||||
|
||||
mkdir -p .local/bin
|
||||
|
||||
if [[ ! -x ~/.local/bin/task ]]; then
|
||||
sh -c "$(curl --silent --location https://taskfile.dev/install.sh)" -- -d -b ~/.local/bin
|
||||
fi
|
||||
|
||||
~/.local/bin/task
|
||||
Reference in New Issue
Block a user