This script updates Ubuntu, installs mosh, zsh, oh-my-zsh, Vim-mode and completion plugins, and configures jj as an insert-mode escape shortcut in Vim and the zsh prompt.
After the repository is published on GitHub, run it with one command:
curl -fsSL https://raw.githubusercontent.com/aprogramq/server-setup/main/ubuntu.sh | bashLocal run:
chmod +x ubuntu.sh
./ubuntu.shThe script can be run as root or as a regular user with sudo access.
- system packages:
ca-certificates,curl,git,mosh,tmux,vim,zsh oh-my-zshoh-my-zshplugins:git,vi-mode,zsh-autosuggestions,zsh-syntax-highlighting,zsh-completions~/.vimrc:inoremap jj <Esc>~/.zshrc: Vim mode andjjasEscin the command line,VI_MODE_ESC_INSERT=jj,KEYTIMEOUT=25tmuxautostart on SSH login: attaches to themainsession or creates it~/.tmux.conf: copy mode onCtrl-b v, defaultCtrl-b [disabled, copy-mode scrolling withj/l, copying withyorYto the local clipboard through OSC 52
After the shell is changed, log out and log back in.