flakrat / dotfiles

Various . profile files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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).
#!/bin/bash

fonts_list=(
  font-3270-nerd-font
  font-fira-mono-nerd-font
  font-inconsolata-go-nerd-font
  font-inconsolata-lgc-nerd-font
  font-inconsolata-nerd-font
  font-monofur-nerd-font
  font-overpass-nerd-font
  font-ubuntu-mono-nerd-font
  font-agave-nerd-font
  font-arimo-nerd-font
  font-anonymice-nerd-font
  font-aurulent-sans-mono-nerd-font
  font-bigblue-terminal-nerd-font
  font-bitstream-vera-sans-mono-nerd-font
  font-blex-mono-nerd-font
  font-caskaydia-cove-nerd-font
  font-code-new-roman-nerd-font
  font-cousine-nerd-font
  font-daddy-time-mono-nerd-font
  font-dejavu-sans-mono-nerd-font
  font-droid-sans-mono-nerd-font
  font-fantasque-sans-mono-nerd-font
  font-fira-code-nerd-font
  font-go-mono-nerd-font
  font-gohufont-nerd-font
  font-hack-nerd-font
  font-hasklug-nerd-font
  font-heavy-data-nerd-font
  font-hurmit-nerd-font
  font-im-writing-nerd-font
  font-iosevka-nerd-font
  font-jetbrains-mono-nerd-font
  font-lekton-nerd-font
  font-liberation-nerd-font
  font-meslo-lg-nerd-font
  font-monoid-nerd-font
  font-mononoki-nerd-font
  font-mplus-nerd-font
  font-noto-nerd-font
  font-open-dyslexic-nerd-font
  font-profont-nerd-font
  font-proggy-clean-tt-nerd-font
  font-roboto-mono-nerd-font
  font-sauce-code-pro-nerd-font
  font-shure-tech-mono-nerd-font
  font-space-mono-nerd-font
  font-terminess-ttf-nerd-font
  font-tinos-nerd-font
  font-ubuntu-nerd-font
  font-victor-mono-nerd-font
)

brew tap homebrew/cask-fonts

for font in "${fonts_list[@]}"
do
  brew install --cask "$font"
done
exit  
  • 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


Languages

Language:Shell 95.8%Language:Vim Script 4.2%