A repository for some of my configuration dotfiles.
alias config="/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME"
echo ".cfg" >> .gitignore
git clone --bare https://github.com/sabeer-code/dotfiles.git $HOME/.cfg
config checkout
config config --local status.showUntrackedFiles no
cat <<'EOF' >> ~/.bashrc
# Create ~/bin folder if it does not exist and add to PATH
if [[ ! -d $HOME/bin ]]; then
mkdir -p $HOME/bin
fi
export PATH="$HOME/bin:$PATH"
# Alias definitions.
if [[ -f $HOME/.bash_aliases ]]; then
. $HOME/.bash_aliases
fi
# Prompt Definition
if [[ -f $HOME/.bash_prompt ]]; then
. $HOME/.bash_prompt
fi
EOF
source ~/.bashrc
cd ~/bin
curl -LO https://github.com/neovim/neovim/releases/latest/download/nvim.appimage
chmod u+x nvim.appimage
ln -s nvim.appimage ./nvim
cd ~
source ~/.bashrc
Delete current config, clone the NvChad setup, and restore custom config
rm -rf ~/.config/nvim && git clone https://github.com/NvChad/NvChad ~/.config/nvim --depth 1 && config restore ~/.config/nvim/lua/custom
- Install Tmux as per TmuxWiki
NOTE: This is needed as some Tmux configuration needs newer versions of Tmux - Clone Tmux Package Manager into config: https://github.com/tmux-plugins/tpm#installation
References: