2020-08-07 02:31:18 +00:00
|
|
|
# Install ohmyzsh
|
2021-07-02 01:24:40 +00:00
|
|
|
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
|
2021-09-22 12:44:38 +00:00
|
|
|
sudo chown -R $(whoami) $HOME/.oh-my-zsh $HOME/.zshrc
|
2020-08-07 02:31:18 +00:00
|
|
|
|
|
|
|
# Install thefuck, zsh-suggestion
|
|
|
|
sudo python3 -m pip install thefuck
|
|
|
|
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
|
|
|
|
|
2021-08-16 13:40:38 +00:00
|
|
|
# Copy dotfiles
|
2021-09-22 12:44:38 +00:00
|
|
|
ln -sn $PWD/.config $HOME/.config
|
|
|
|
ln -s $PWD/.zshrc $HOME/.zshrc
|
|
|
|
touch $HOME/.z
|
|
|
|
|
|
|
|
mode "exit: [l]ogout, [r]eboot, [s]hutdown" {
|
|
|
|
bindsym l exec i3-msg exit
|
|
|
|
bindsym r exec systemctl reboot
|
|
|
|
bindsym s exec systemctl shutdown
|
|
|
|
bindsym k exec i3lock; mode "default"
|
|
|
|
bindsym Escape mode "default"
|
|
|
|
bindsym Return mode "default"
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
bindsym $mod+x mode "exit: [l]ogout, [r]eboot, [s]hutdown, loc[k]"
|
2021-08-16 13:40:38 +00:00
|
|
|
|
|
|
|
|
|
|
|
setup_macos() {
|
|
|
|
# Install Homebrew
|
|
|
|
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)";
|
|
|
|
}
|
|
|
|
|
|
|
|
# Determine which OS is in use
|
2021-09-22 12:44:38 +00:00
|
|
|
case "$(uname)" in
|
2021-08-16 13:40:38 +00:00
|
|
|
Linux*) INSTALL_CMD="yay -S";;
|
|
|
|
Darwin*) INSTALL_CMD="brew install";;
|
|
|
|
esac
|
|
|
|
|
|
|
|
# Install software
|
2021-09-22 12:44:38 +00:00
|
|
|
$INSTALL_CMD git cloc htop
|
2021-08-16 13:40:38 +00:00
|
|
|
$INSTALL_CMD neovim
|
|
|
|
$INSTALL_CMD rustup rust-analyzer
|
|
|
|
$INSTALL_CMD go gopls
|
|
|
|
$INSTALL_CMD nodejs yarn
|
|
|
|
|
2021-09-22 12:44:38 +00:00
|
|
|
if [[ "$(uname)" == "Linux" ]]; then
|
|
|
|
$INSTALL_CMD lxappearance
|
|
|
|
$INSTALL_CMD adapta-gtk-theme papirus-icon-theme nerd-fonts-complete
|
|
|
|
$INSTALL_CMD evince neofetch feh
|
2021-08-16 13:40:38 +00:00
|
|
|
$INSTALL_CMD docker docker-compose
|
|
|
|
$INSTALL_CMD texlive-full
|
2021-09-22 12:44:38 +00:00
|
|
|
|