mirror of
https://github.com/mentos1386/dotfiles.git
synced 2024-11-22 07:33:33 +00:00
feat: install for ubuntu
This commit is contained in:
parent
c26cdc41ab
commit
92bde3bcde
1 changed files with 23 additions and 3 deletions
26
install.sh
26
install.sh
|
@ -15,9 +15,9 @@ workspace_link() {
|
||||||
ln -s $REPO_DIR/$1 $HOME_DIR/$2 || true
|
ln -s $REPO_DIR/$1 $HOME_DIR/$2 || true
|
||||||
}
|
}
|
||||||
|
|
||||||
echo "== manjaro packages"
|
|
||||||
if cat /etc/lsb-release | grep Manjaro > /dev/null
|
if cat /etc/lsb-release | grep Manjaro > /dev/null
|
||||||
then
|
then
|
||||||
|
echo "== manjaro packages"
|
||||||
sudo pacman -Syu
|
sudo pacman -Syu
|
||||||
sudo pacman -S \
|
sudo pacman -S \
|
||||||
git \
|
git \
|
||||||
|
@ -27,11 +27,28 @@ then
|
||||||
neovim \
|
neovim \
|
||||||
zsh \
|
zsh \
|
||||||
tmux \
|
tmux \
|
||||||
starship \
|
|
||||||
nodejs \
|
nodejs \
|
||||||
ripgrep \
|
ripgrep \
|
||||||
fd \
|
|
||||||
typos-bin
|
typos-bin
|
||||||
|
elif cat /etc/os-release | grep "Ubuntu" > /dev/null
|
||||||
|
then
|
||||||
|
echo "== ubuntu packages"
|
||||||
|
sudo apt update
|
||||||
|
sudo apt install -y \
|
||||||
|
git \
|
||||||
|
bat \
|
||||||
|
vim \
|
||||||
|
neovim \
|
||||||
|
zsh \
|
||||||
|
tmux \
|
||||||
|
nodejs \
|
||||||
|
ripgrep \
|
||||||
|
snapd \
|
||||||
|
cargo
|
||||||
|
sudo snap install \
|
||||||
|
difftastic \
|
||||||
|
starship \
|
||||||
|
cargo install typos-cli
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "== zplug"
|
echo "== zplug"
|
||||||
|
@ -43,6 +60,9 @@ then
|
||||||
sh -c "$(curl -fsSL https://starship.rs/install.sh)" -- --yes
|
sh -c "$(curl -fsSL https://starship.rs/install.sh)" -- --yes
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo "== Switching shell to ZSH"
|
||||||
|
sudo chsh $USER --shell $(which zsh)
|
||||||
|
|
||||||
echo "== Copying configuration files..."
|
echo "== Copying configuration files..."
|
||||||
# GIT
|
# GIT
|
||||||
workspace_backup .gitconfig
|
workspace_backup .gitconfig
|
||||||
|
|
Loading…
Reference in a new issue