Skip to content

LudvigHz/dotfiles

Repository files navigation

LudvigHz dotfiles

Dotfiles used on (currently) Arch Linux for the following:

Installation

Make sure to install Nerdfonts: https://github.com/ryanoasis/nerd-fonts

The configration uses an install utility, run the utility to see what can be auto-installed.

chmod +x install.sh
./install.sh

To Install everything automatically, run the install utility with -a:

./install.sh -a

Tmux

./install.sh tmux to install.

ZSH

Fzf

  • Both zsh and vim configration uses fzf.

  • Note: fzf commands in zsh uses ripgrep instead of grep for optimal performance. use the utility to install it as well.

  • Installation

./install.sh cli-tools -n fzf
./install.sh cli-tools -n ripgrep

Installation

Install with the provided utility with zsh as argument:

This only installs the configuration

./install.sh zsh

Updating

To update zsh plugins, run:

./install.sh zsh-update # in dotfiles folder
# Or
dots zsh-update # From anywhere

This will also install any new plugins defined in zshrc

Currently does not support updates from oh-my-zsh plugins

Completion

There is a bit of custom logic for shell completion. See zshrc for detail. By default, zsh compiles and loads completions on every new shell startup. This is slow and annoying, so it is configured to load once every day.

To reload new completions, f.ex. when installing new programs or adding completion files, run the provided command:

# Reload completions
$ compload
Custom completions

Many programs provide completions by generating this with a command. This must be put in its own file in $DOTFILES/.local/completions to be loaded. Example

kubectl completion zsh > $DOTFILES/.local/completions/_kubectl

Vim

Same installation as with fzf, use cli-tools script to install both vim and neovim

./install.sh vim

Run :PlugInstall if it doesn't install automatically when you open vim.

  • Note: npm and node.js is required for coc.nvim.

Completion

This config currently uses coc.nvim for completion. See here for configuration of language servers.

Screens

Gnome configuration

Make sure to have gnome-tweaks installed and run:

cd ~
dconf load / < dotfiles/ubuntu/saved_settings.dconf

About

Dotfiles for zsh, tmux and vim used on linux

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published