Last active
June 24, 2019 11:55
-
-
Save terry90/62c1804463ca5ba3bf322aa4ef814f87 to your computer and use it in GitHub Desktop.
Manjaro Setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/zsh | |
chsh -s $(which zsh) | |
sudo pacman -Syu | |
sudo pacman -S bat --noconfirm | |
sudo pacman -S lsd --noconfirm | |
sudo pacaur -S nerd-fonts-source-code-pro --noconfirm --noedit | |
sudo pacman -S code --noconfirm | |
sudo pacman -S pacaur --noconfirm | |
sudo pacaur -S google-chrome --noconfirm --noedit | |
sudo pacman -S emacs-nox --noconfirm | |
sudo pacman -S zsh-completions --noconfirm | |
sudo pacman -S zsh-autosugggestions --noconfirm | |
sudo pacman -S zsh-syntax-highlighting --noconfirm | |
# Shell | |
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" | |
curl https://gist.githubusercontent.com/terry90/717d9c0b49dd305261a5b7c1d29d07a2/raw/2f7fc1eb5757ef644a70dfb7fb73a850888adc6f/.zshrc -o ~/.zshrc | |
rm -rf ~/.oh-my-zsh/custom/themes/spaceship-prompt | |
git clone https://github.com/denysdovhan/spaceship-prompt.git ~/.oh-my-zsh/custom/themes/spaceship-prompt | |
ln -s ~/.oh-my-zsh/custom/themes/spaceship-prompt/spaceship.zsh-theme ~/.oh-my-zsh/custom/themes/spaceship.zsh-theme | |
# Rust | |
curl https://sh.rustup.rs -sSf | sh -s -- -y | |
source $HOME/.cargo/env | |
source ~/.zshrc | |
# Theme emacs | |
mkdir -p ~/.emacs.d/themes | |
echo "(add-to-list 'custom-theme-load-path \"~/.emacs.d/themes\")" >> ~/.emacs.d/init.el | |
echo "(load-theme 'darcula t)" >> ~/.emacs.d/init.el | |
echo '(defvar --backup-directory (concat user-emacs-directory "backups"))' >> ~/.emacs.d/init.el | |
echo '(if (not (file-exists-p --backup-directory))' >> ~/.emacs.d/init.el | |
echo ' (make-directory --backup-directory t))' >> ~/.emacs.d/init.el | |
echo '(setq backup-directory-alist `(("." . ,--backup-directory)))' >> ~/.emacs.d/init.el | |
echo '(setq make-backup-files t ; backup of a file the first time it is saved.' >> ~/.emacs.d/init.el | |
echo ' backup-by-copying t ; do not clobber symlinks' >> ~/.emacs.d/init.el | |
echo ' version-control t ; version numbers for backup files' >> ~/.emacs.d/init.el | |
echo ' delete-old-versions t ; delete excess backup files silently' >> ~/.emacs.d/init.el | |
echo ' delete-by-moving-to-trash t' >> ~/.emacs.d/init.el | |
echo ' kept-old-versions 6 ; oldest versions to keep when a new numbered backup is made (default: 2)' >> ~/.emacs.d/init.el | |
echo ' kept-new-versions 9 ; newest versions to keep when a new numbered backup is made (default: 2)' >> ~/.emacs.d/init.el | |
echo ' auto-save-default t ; auto-save every buffer that visits a file' >> ~/.emacs.d/init.el | |
echo ' auto-save-timeout 20 ; number of seconds idle time before auto-save (default: 30)' >> ~/.emacs.d/init.el | |
echo ' auto-save-interval 200 ; number of keystrokes between auto-saves (default: 300)' >> ~/.emacs.d/init.el | |
echo ' )' >> ~/.emacs.d/init.el | |
curl https://raw.githubusercontent.com/purcell/darcula-theme-emacs/master/darcula-theme.el -o ~/.emacs.d/themes/darcula-theme.el | |
# Ruby version manager | |
gpg2 --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB | |
curl -sSL https://get.rvm.io | /usr/bin/zsh -s stable --rails | |
source ~/.rvm/scripts/rvm | |
# NVM | |
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | /usr/bin/zsh | |
# Postgres | |
sudo pacman -S postgresql --noconfirm | |
sudo su postgres -l # or sudo -u postgres -i | |
initdb --locale $LANG -E UTF8 -D '/var/lib/postgres/data/' | |
exit | |
sudo systemctl enable --now postgresql.service | |
sudo su - postgres | |
createuser -s doc | |
exit | |
# Docker | |
sudo pacman -S docker --noconfirm | |
sudo systemctl start docker | |
sudo systemctl enable docker | |
sudo usermod -aG docker $USER | |
# GCloud / Kubernetes | |
pacaur -S google-cloud-sdk --noconfirm --noedit | |
source ~/.zshrc | |
pacaur -S kubernetes-bin --noconfirm --noedit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment