🚚 split install script by program
This commit is contained in:
parent
d9c3c12b82
commit
9ee123ab8a
6 changed files with 63 additions and 28 deletions
30
.github/workflows/main.yml
vendored
30
.github/workflows/main.yml
vendored
|
|
@ -4,9 +4,37 @@ on:
|
||||||
- main
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
install_nvim:
|
||||||
|
name: install nvim
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v1
|
||||||
|
- run: bash install_nvim.sh
|
||||||
|
|
||||||
|
install_fish:
|
||||||
|
name: install fish
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v1
|
||||||
|
- run: bash install_fish.sh
|
||||||
|
|
||||||
|
install_tmux:
|
||||||
|
name: install tmux
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v1
|
||||||
|
- run: bash install_tmux.sh
|
||||||
|
|
||||||
|
install_fzf:
|
||||||
|
name: install fzf
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v1
|
||||||
|
- run: bash install_fzf.sh
|
||||||
|
|
||||||
install_codespaces_setup:
|
install_codespaces_setup:
|
||||||
name: install codespaces setup
|
name: install codespaces setup
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
- run: ls -la && bash install.sh
|
- run: bash install.sh
|
||||||
|
|
|
||||||
34
install.sh
34
install.sh
|
|
@ -12,11 +12,16 @@ echo >&2 " USER $USER"
|
||||||
echo >&2 " HOME $HOME"
|
echo >&2 " HOME $HOME"
|
||||||
echo >&2 "====================================================================="
|
echo >&2 "====================================================================="
|
||||||
|
|
||||||
cd $HOME
|
|
||||||
|
|
||||||
# Make passwordless sudo work
|
# Make passwordless sudo work
|
||||||
export SUDO_ASKPASS=/bin/true
|
export SUDO_ASKPASS=/bin/true
|
||||||
|
|
||||||
|
/bin/bash ./install_tmux.sh
|
||||||
|
/bin/bash ./install_fish.sh
|
||||||
|
/bin/bash ./install_fzf.sh
|
||||||
|
/bin/bash ./install_nvim.sh
|
||||||
|
|
||||||
|
cd $HOME
|
||||||
|
|
||||||
# No thank you
|
# No thank you
|
||||||
rm -rf .oh-my-bash
|
rm -rf .oh-my-bash
|
||||||
rm -rf .oh-my-zsh
|
rm -rf .oh-my-zsh
|
||||||
|
|
@ -27,28 +32,3 @@ rm -rf .oh-my-zsh
|
||||||
# git clone https://github.com/dcreager/dotfiles-base .dotfiles.base
|
# git clone https://github.com/dcreager/dotfiles-base .dotfiles.base
|
||||||
# git clone https://github.com/dcreager/dotfiles-public -b codespaces --recurse-submodules .dotfiles.public
|
# git clone https://github.com/dcreager/dotfiles-public -b codespaces --recurse-submodules .dotfiles.public
|
||||||
# $HOME/.dotfiles.base/bin/dotfiles.symlink install
|
# $HOME/.dotfiles.base/bin/dotfiles.symlink install
|
||||||
|
|
||||||
/bin/bash install_tmux.sh
|
|
||||||
|
|
||||||
# I'd like to use fish, please
|
|
||||||
echo >&2 "====================================================================="
|
|
||||||
echo >&2 " >> installing fish"
|
|
||||||
sudo apt-get install -y fish
|
|
||||||
echo >&2 " >>> changing shell to fish"
|
|
||||||
sudo chsh -s /usr/bin/fish $USER
|
|
||||||
|
|
||||||
# Install fzf
|
|
||||||
echo >&2 "====================================================================="
|
|
||||||
echo >&2 " >> installing fzf"
|
|
||||||
FZF_VERSION=0.40.0
|
|
||||||
curl -L https://github.com/junegunn/fzf/releases/download/${FZF_VERSION}/fzf-${FZF_VERSION}-linux_amd64.tar.gz | tar xzC /bin
|
|
||||||
|
|
||||||
|
|
||||||
# Install neovim
|
|
||||||
echo >&2 "====================================================================="
|
|
||||||
echo >&2 " >> installing nvim"
|
|
||||||
# curl -LO https://github.com/neovim/neovim/releases/latest/download/nvim.appimage
|
|
||||||
NVIM_VERSION=0.9.0
|
|
||||||
curl -LO https://github.com/neovim/neovim/releases/tag/v${NVIM_VERSION}/download/nvim.appimage
|
|
||||||
chmod u+x nvim.appimage
|
|
||||||
./nvim.appimage
|
|
||||||
|
|
|
||||||
8
install_fish.sh
Normal file
8
install_fish.sh
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# I'd like to use fish, please
|
||||||
|
echo >&2 "====================================================================="
|
||||||
|
echo >&2 " >> installing fish"
|
||||||
|
sudo apt-get install -y fish
|
||||||
|
echo >&2 " >>> changing shell to fish"
|
||||||
|
sudo chsh -s /usr/bin/fish $USER
|
||||||
7
install_fzf.sh
Normal file
7
install_fzf.sh
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Install fzf
|
||||||
|
echo >&2 "====================================================================="
|
||||||
|
echo >&2 " >> installing fzf"
|
||||||
|
FZF_VERSION=0.40.0
|
||||||
|
curl -L https://github.com/junegunn/fzf/releases/download/${FZF_VERSION}/fzf-${FZF_VERSION}-linux_amd64.tar.gz | tar xzC /bin
|
||||||
10
install_nvim.sh
Normal file
10
install_nvim.sh
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Install neovim
|
||||||
|
echo >&2 "====================================================================="
|
||||||
|
echo >&2 " >> installing nvim"
|
||||||
|
# curl -LO https://github.com/neovim/neovim/releases/latest/download/nvim.appimage
|
||||||
|
NVIM_VERSION=0.9.0
|
||||||
|
curl -LO https://github.com/neovim/neovim/releases/tag/v${NVIM_VERSION}/download/nvim.appimage
|
||||||
|
chmod u+x nvim.appimage
|
||||||
|
./nvim.appimage
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
echo >&2 "====================================================================="
|
echo >&2 "====================================================================="
|
||||||
echo >&2 " >> installing tmux"
|
echo >&2 " >> installing tmux"
|
||||||
TMUX_VERSION=3.3a
|
TMUX_VERSION=3.3a
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue