Skip to content

My personal dotfiles

License

Notifications You must be signed in to change notification settings

duboisf/.dotfiles

Repository files navigation

.dotfiles

My personal dotfiles.

Installation

cd ~
# This repo contains git submodules, so you need the --recursive option
git clone --recursive https://github.com/duboisf/.dotfiles.git
cd .dotfiles
stow zsh
stow nvim
# etc.

Install github's hub

GitHub's hub is an alias for git in my zsh config. It makes cloning repos from GitHub a breeze, among other things. Install with:

sudo apt install hub

Install nerdfonts

These fonts are needed to render the terminal and nvim correctly:

cd ~/Downloads
wget https://github.com/ryanoasis/nerd-fonts/releases/download/v2.1.0/FiraCode.zip
wget https://github.com/ryanoasis/nerd-fonts/releases/download/v2.1.0/JetBrainsMono.zip
mkdir ~/.fonts
cd ~/.fonts
unzip ~/Downloads/{FiraCode,JetBrainsMono}.zip
fc-cache -fv

Install nvim

Download nightly build from here and then:

cd ~/Downloads
chmod +x ./nvim.appimage
./nvim.appimage --appimage-extract
mv squashfs-root/ ~/.local/nvim
mkdir ~/.local/bin
ln -s ~/.local/nvim/AppRun ~/.local/bin/nvim

Setup nvim dependencies

To get all the nvim plugins working properly we need to install python and node:

sudo apt install python3-pip
pip3 install pynvim

We also need to install some binaries like bat, rg (sudo apt install ripgrep) and fd.

Install kitty

mkdir ~/.local/stow
curl -L https://sw.kovidgoyal.net/kitty/installer.sh | sh /dev/stdin \
  dest=~/.local/stow
cd ~/.local/stow
stow -v kitty.app
sudo ln -s /home/fred/.local/bin/kitty /usr/local/bin/kitty
sudo update-alternatives --install /usr/bin/x-terminal-emulator x-terminal-emulator /usr/local/bin/kitty 100

Install keybase

curl --remote-name https://prerelease.keybase.io/keybase_amd64.deb
sudo apt install ./keybase_amd64.deb
run_keybase

Import keybase pgp key into gpg

keybase pgp export | gpg --import
keybase pgp export --secret | gpg --import --allow-secret-key-import

Setup

Fix gnome-shell overview shortcut for Kinesis Advantage2 keyboard

My Kinesis Advantage2 keyboard's Super (windows) key doesn't trigger the Gnome Shell Overview by default. This is because the Super key on the keyboard is actually a right Super key. We can fix this by installing gnome-tweaks (sudo apt install gnome-tweaks) and picking the right Super key as the Overview Shortcut in the Keyboard & Mouse section.