Skip to content

flakrat/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dotfiles that I share amongst my workstations (idea and some content from Josh Beard's GitHub: https://github.com/joshbeard/dotfiles)

References

ZSH with Starship

Starship is a cross-shell prompt built with Rust.

image

  • Install Starship and Antigen (ZSH plugin manager)
[[ ! -d ~/.local/bin ]] && mkdir -p ~/.local/bin

sh -c "$(curl -fsSL https://starship.rs/install.sh)" -- --bin-dir ~/.local/bin
curl -L git.io/antigen > ~/antigen.zsh
  • Install Nerd Fonts (only needed on the local system).

    brew search '/font-.*-nerd-font/' | awk '{ print $1 }' | xargs brew install --cask
    • Linux manual Nerd Font Install
    fontdir="$HOME/.local/share/fonts/NerdFonts"
    [[ ! -d "$fontdir" ]] && mkdir -p $fontdir
    
    curl -fLo "${fontdir}/Hack Regular Nerd Font Complete.ttf" \
      https://github.com/ryanoasis/nerd-fonts/blob/master/patched-fonts/Hack/Regular/complete/Hack%20Regular%20Nerd%20Font%20Complete.ttf
    
    fc-cache -f "$fontdir"
    printf '\ue0c0\n'
  • Add ZSH configuration files from this repo

[[ ! -d ~/git/flakrat ]] && mkdir -p ~/git/flakrat

cd ~/git/flakrat
git clone https://github.com/flakrat/dotfiles.git

cd ~/git/flakrat/dotfiles/zsh
cp .zshrc .zshrc.local  ~/

[[ ! -d ~/.config ]] && mkdir -p ~/.config
cp starship.toml ~/.config/
  • Exit and restart the shell and your prompt should now be awesome

Tmux

Install gpakosz/.tmux

cd ~
git clone https://github.com/gpakosz/.tmux.git
ln -s -f .tmux/.tmux.conf
cp ~/git/flakrat/dotfiles/tmux/.tmux.conf.local ~/
if [[ ! -d ~/.tmux_resurrect ]]; then mkdir ~/.tmux_resurrect; fi

NeoVim / NvChad

Install the latest release of NeoVim AppImage

file=~/.local/bin/nvim.appimage
test -f $file && rm $file
curl -L https://github.com/neovim/neovim/releases/latest/download/nvim.appimage -o $file
ln -s $file ~/.local/bin/nvim
chmod 755 $file

Install the NvChad plugin manager for NeoVim

test -d ~/.config/nvim && rm -rf ~/.config/nvim
test -d ~/.local/share/nvim && rm -rf ~/.local/share/nvim
git clone https://github.com/NvChad/NvChad ~/.config/nvim --depth 1 && nvim

NvChad can be updated from within NeoVim using the command

NvChadUpdate

Optionally, disable the mouse click moving the cursor by editing ~/.config/nvim/lua/core/init.lua and changing opt.mouse = "a" to opt.mouse = ""

Additionally, on RHEL7 / CentOS 7, nvim-treesitter fails to build. It can be disabled by editing ~/.config/nvim/lua/custom/plugins.lua

{
  "nvim-treesitter/nvim-treesitter",
  opts = overrides.treesitter,
  enabled = false
},

About

Various . profile files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published