dotfiles

Personal dotfiles.
git clone git://vcs.sapka.me/dotfiles
Log | Files | Refs | Submodules

commit 7b9b4dd44e36451e96ee0bc7db22f01e523100dd
parent a19b81e979037403a5241ee24dce1120fc0d679c
Author: MichaƂ Sapka <michal@sapka.me>
Date:   Thu,  6 Oct 2022 17:47:56 +0200

feat: add basic Ubuntu setup script

Diffstat:
Mfish/.config/fish/config-linux.fish | 2+-
Asetup/ubuntu.sh | 95+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 96 insertions(+), 1 deletion(-)

diff --git a/fish/.config/fish/config-linux.fish b/fish/.config/fish/config-linux.fish @@ -1,3 +1,3 @@ alias tmux="tmux -u" -source /opt/asdf-vm/asdf.fish +starship init fish diff --git a/setup/ubuntu.sh b/setup/ubuntu.sh @@ -0,0 +1,95 @@ +#!/bin/bash -i + +# Install apps + +flatpak install \ + org.gimp.GIMP \ + app/com.bitwarden.desktop/x86_64/stable \ + com.discordapp.Discord \ + app/com.valvesoftware.Steam/x86_64/stable \ + -y + +sudo apt-add-repository ppa:fish-shell/release-3 + +sudo apt update && sudo apt upgrade +sudo apt install \ + git \ + curl \ + alacritty \ + tmux \ + fish \ + exa \ + stow \ + ripgrep \ + fzf \ + stow \ + neovim \ + exa \ + starship \ + tldr \ + -y + +curl -sS https://starship.rs/install.sh | sh + +# Configure Git + +mkdir ~/.ssh + +if [[ ! -f ~/.ssh/id_rsa ]] ; then + echo 'id_rsa does not exist in system. EXITING' + exit +fi + +if [[ ! -f ~/.ssh/id_rsa.pub ]] ; then + echo 'id_rsa.pub does not exist in system. EXITING' + exit +fi + +eval "$(ssh-agent -s)" +chmod 600 "$HOME/.ssh/id_rsa" +ssh-add "$HOME/.ssh/id_rsa" + +# Install and setup asdf + +rm -rf ~/.asdf +git clone git@github.com:asdf-vm/asdf.git ~/.asdf +. $HOME/.asdf/asdf.sh # temporary source, as later we will use Fish +#echo ". $HOME/.asdf/asdf.sh" >> ~/.bashrc +source $HOME/.asdf/asdf.sh + +asdf plugin add ruby +asdf plugin add nodejs +asdf plugin add rust +asdf plugin add golang + +# things that are not in apt :( +asdf plugin add ghq + +asdf install + +# Install dotfiles + +ghq get -p git@github.com/michalsapka/dotfiles.git + +cd "$HOME/ghq/github.com/michalsapka/dotfiles" +stow nvim --dir="$HOME/ghq/github.com/michalsapka/dotfiles" --target="$HOME" +stow tmux --dir="$HOME/ghq/github.com/michalsapka/dotfiles" --target="$HOME" +stow fish --dir="$HOME/ghq/github.com/michalsapka/dotfiles" --target="$HOME" +stow zsh --dir="$HOME/ghq/github.com/michalsapka/dotfiles" --target="$HOME" +stow bin --dir="$HOME/ghq/github.com/michalsapka/dotfiles" --target="$HOME" +stow alacritty --dir="$HOME/ghq/github.com/michalsapka/dotfiles" --target="$HOME" + +# Use Fish shell + +chsh -s /usr/bin/fish + +echo "Setup done!" + + + + + +#other: +#- adfg +#- gh-cli - https://garywoodfine.com/how-to-install-github-cli-on-linux/ +#- ghq