Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Setting up a new Ubuntu installation with my personal dotfiles and other required software!
$ sudo apt-get install git curl xsel
$ sudo apt-get install silversearch-ag jq
$ sudo apt-get install zsh
$ mkdir -p ~/code ~/sandbox ~/personal
$ ssh-keygen -t rsa -b 4096
$ cat ~/.ssh/ | xsel --input --clipboard
# Add your new SSH public key to your GitHub account!
$ git clone ...
$ cd dotfiles
$ git submodule update --init --recursive
$ bash
$ chsh -s /bin/zsh
# Logout of the account and log back in;
# We now have a bare zsh shell; Prezto still doesn't work for some reason
# Let's get Vundle and install some vim plugins
$ git clone ~/.vim/bundle/Vundle.vim
$ sudo apt-get install make
$ make
# Vim needs a C compiler; It's not shipped with Ubuntu? :scream:
$ sudo apt-get install gcc
$ make
# Okay, vim install requires ncurses; Let's table the vim build for a while; I want to come back to it;
# Install tmux, for good measure
$ sudo apt-get install tmux
# AHA! I realize the problem with prezto now. The run configurations are not
# in `$ZDOTDIR/.zpreztorc` etc
# Let's run a command to fix that!
# from the prezto readme:
for rcfile in "${ZDOTDIR:-$HOME}"/.zprezto/runcoms/^; do
ln -s "$rcfile" "${ZDOTDIR:-$HOME}/.${rcfile:t}"
# Check that the symlinks were created
$ ls -lsh .z*
# Restart the shell
# Let's go back and try to build vim now!
$ make
# We still don't have ncurses!
$ sudo apt-get install libncurses-dev
$ make
# Vim successfully built! Let's copy it into the path!
$ cd src
$ ./vim --version
# Install vim locally now!
$ sudo make install
# Restart shell to get a full vim experience!
# Next: Color scheme!
# I need to get the base 16 solarized dark profile for Gnome Terminal
$ git clone ~/.config/base16-gnome-terminal
$ cd .config/base16-gnome-terminal/color-scripts
$ ./
# I MUST remap Caps Lock to Escape! I don't know how I did it on my other Ubuntu
# computer :cry: I have to go around foraging once more!
# Ah! Found it:
$ dconf write /org/gnome/desktop/input-sources/xkb-options "['caps:escape']"
$ dconf list /org/gnome/desktop/input-sources
$ dconf read /org/gnome/desktop/input-sources/xkb-options
# Get the tmux plugin manager!
$ git clone ~/.tmux/plugins/tpm
$ tmux source ~/.tmux.conf
$ tmux
# Now: Prefix + I => Installs all the plugins
# Get autojump
$ $ git clone git://
$ cd autojump
$ ./
# Python is not in the env it seems like;
$ sudo ln -s /usr/bin/python3 /usr/bin/python
$ ./
# Start a new shell
$ autojump --help
# Alright! Let's get fzf now!
$ git clone --depth 1 ~/.fzf
$ cd ~/.fzf
$ ./install --all
# And hub: the github cli
$ tar zxf hub.tar.gz
$ sudo mv hub/bin/hub /usr/local/bin/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment