These are my dotfiles.
Here's what needs to be done to install this on a new system. For more complete instructions on how I set up a new machine, head over to the installation guide:
- Create
dotfiles
alias:
$ echo "alias dotfiles='/usr/bin/git --git-dir=$HOME/projects/dotfiles/ \
--work-tree=$HOME'" >> $HOME/.bash_aliases
- Add dotfiles project path to .gitignore on
$HOME
$ echo "./projects/dotfiles" >> .gitignore
- Clone repository into bare repository
$ git clone --bare https://github.com/PascalPrecht/dotfiles $HOME/projects/dotfiles
- Checkout contents
$ dotfiles checkout
From here on, use the dotfiles
command to add, commit push etc. to the dotfiles repository.
Make sure you setup your git signing key.
$ sudo apt install gnome-tweaks
Then, also turn off Ubuntu dock via extensions.
$ sudo apt install gnome-sushi
I use the following preferences on linux (Ubuntu) in the terminal:
- Initial terminal size: 130 columns, 40 rows
- Custom terminal background color: #141617
- Palette built-in scheme: solarized
- Turn on "Show bold text in bright colors
Download the latest DEB package from here.
Then install it via apt-get
:
$ sudo apt-get install path/to/dep/file
Then do
$ sudo apt update
$ sudo apt install protonvpn-cli
$ sudo apt install git
Basically need to follow steps here:
- Generate a new GPG key
- Add it to your GitHub account
- Tell Git your signing key
- Associate email with GPG key
Either use Personal Access Tokens or SSH keys to authenticate with GitHub. To set up SSH key, follow the these steps:
$ sudo apt install tmux
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash
This is needed for coc-rust-analyzer
.
$ sudo apt install neovim
Also, set NeoVim as editor alternatives on machine:
sudo update-alternatives --install /usr/bin/vi vi /usr/bin/nvim 60
sudo update-alternatives --config vi
sudo update-alternatives --install /usr/bin/vim vim /usr/bin/nvim 60
sudo update-alternatives --config vim
sudo update-alternatives --install /usr/bin/editor editor /usr/bin/nvim 60
sudo update-alternatives --config editor
git clone https://github.com/k-takata/minpac.git \
~/.config/nvim/pack/minpac/opt/minpac
Then run :call minpac#update()
inside Vim.
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
Also need to install build-essential
:
$ sudo apt install build-essential
$ curl -L https://github.com/rust-analyzer/rust-analyzer/releases/latest/download/rust-analyzer-x86_64-unknown-linux-gnu.gz | gunzip -c - > ~/.local/bin/rust-analyzer
$ chmod +x ~/.local/bin/rust-analyzer
After that, add $HOME/.local/bin
to your PATH
in .profile
or .bashrc
if it's not done yet.
To make this work in Vim, make sure to install coc-rust-analyzer
and set the rust-analyzer.server.path
.
The Vim configurations of this repository have that already.
Installing coc-rust-analyzer
is done via (inside Vim):
:CocInstall coc-rust-analyzer
Usinc coc-vim
install coc-go
via:
:CocInstall coc-go
sudo apt install apt-transport-https curl
sudo curl -fsSLo /usr/share/keyrings/brave-browser-archive-keyring.gpg \
https://brave-browser-apt-release.s3.brave.com/brave-browser-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg arch=amd64] https://brave-browser-apt-release.s3.brave.com/ stable main"|sudo tee /etc/apt/sources.list.d/brave-browser-release.list
sudo apt update
sudo apt install brave-browser
First, go ahead and download the Obsidian snap from https://obsidian.md/download. Then, install the snap:
$ sudo snap install --dangerous path/to/snap/file
Clone the obsidian vault repository:
$ git clone https://github.com/PascalPrecht/.obsidian-vault.git
Then configure Obsidian to use that vault.
These are needed to make Ledger work with linux: https://github.com/LedgerHQ/udev-rules. Download and run the script.