These are my personal dotfiles.
I'm using Wezterm as a terminal emulator and Neovim as a text editor.
My dotfiles live in a bare git repository with $HOME
as the worktree. It's inspired by this blog article.
- Install wezterm E.g.
yay wezterm
-
Install OhmyZSH Official install guide
-
Install nvim E.g.
yay neovim
- Set default shell to ZSH Install ZSH
yay zsh
Set default shell for your user
chsh -s /bin/zsh
- Ignore .cfg in .gitignore
touch ~/.gitignore
echo ".cfg" >> ~/.gitignore
- Clone repo
After setting up SSH for github, clone the repo as
--bare
:
git clone --bare [email protected]:kongreif/.cfg.git $HOME/.cfg
Then set alias for current shell scope.
alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'
Checkout the actual content from the bare repository to your $HOME:
config checkout
If above fails, move / delete .zshrc and run again.
- Set showUntrackedFiles to no Set the flag showUntrackedFiles to no on this specific (local) repository:
config config --local status.showUntrackedFiles no
Now you can run git commands for the config like:
config status
config add .filename
config commit -m "Add filename"
config push
- Setup nvim In order for telescope to work, you'll need to install ripgrep
yay ripgrep
- Install ruby Install ruby-install
yay ruby-install
Install chruby
yay chruby
Run ruby-install
ruby-install
Then install desired ruby version, e.g.
ruby-install 3.3.3
- Install PostgreSQL
yay postgresql
Initialize PostgreSQL database cluster:
sudo su - postgres -c "initdb --locale en_US.UTF-8 -D /var/lib/postgres/data"
Start the PostgreSQL service and enable it to start on boot:
sudo systemctl start postgresql
sudo systemctl enable postgresql