Skip to content

Instantly share code, notes, and snippets.

@come25136
Last active August 14, 2023 03:16
Show Gist options
  • Save come25136/eb4f1d0cfa446402e53812f6ad967f4a to your computer and use it in GitHub Desktop.
Save come25136/eb4f1d0cfa446402e53812f6ad967f4a to your computer and use it in GitHub Desktop.
# Setup package server
sudo sed -i -e 's|http://archive.ubuntu.com|http://jp.archive.ubuntu.com|g' /etc/apt/sources.list
# Setup ask process restart
echo "\$nrconf{restart} = 'l';" | sudo tee /etc/needrestart/conf.d/50local.conf
# Update packages
sudo apt update -y
sudo apt upgrade -y
# Install qemu guest
sudo apt install -y qemu-guest-agent
# Install fish
sudo apt-add-repository -y ppa:fish-shell/release-3
sudo apt install -y fish
sudo chsh -s /usr/bin/fish
fish
echo 'set -g theme_date_format "+%Y-%m-%d %H:%M:%S"
set -g fish_prompt_pwd_dir_length 4
' > ~/.config/fish/config.fish
curl -sL https://raw.githubusercontent.com/jorgebucaran/fisher/main/functions/fisher.fish | source && fisher install jorgebucaran/fisher
fisher install oh-my-fish/theme-bobthefish
# Install btop
sudo apt install -y snapd
sudo snap install btop
# Install Node.js
curl https://get.volta.sh | bash
~/.volta/bin/volta install node
# Setup byobu
byobu
byobu-enable
echo "set -g default-shell /usr/bin/fish" >> ~/.byobu/.tmux.conf
echo "set -g default-command /usr/bin/fish" >> ~/.byobu/.tmux.conf
# Setup timezone
sudo timedatectl set-timezone Asia/Tokyo
echo ""
echo "###########################################"
echo "# Please reboot the machine `sudo reboot` #"
echo "###########################################"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment