Skip to content

AbraXa5/dotfiles

Repository files navigation

Abraxas's dotfiles

Install

Generate and add a ssh key for the repo (here named dotfiles )

Add a ssh config entry for dotfiles.github.com

Host dotfiles.github.com
  HostName github.com
  User git
  IdentityFile ~/.ssh/dotfiles
  IdentitiesOnly yes

Using a script

Run cfg/setupDotfiles.sh

curl https://raw.githubusercontent.com/AbraXa5/dotfiles/main/cfg/setupDotfiles.sh | bash

Manual

Clone the bare repository

git clone --bare [email protected]:AbraXa5/dotfiles $HOME/.dotfiles.git

Setup an alias to use the bare repository

alias dotfiles='/usr/bin/git --git-dir=$HOME/.dotfiles.git/ --work-tree=$HOME'

Backup conflicting dotfiles as a precaution and checkout this repository

dotfiles checkout

Disable tracking of new files

dotfiles config status.showUntrackedFiles no

Post Install

Antigen will handle all zsh requirements and plugins

Update antigen

curl -L git.io/antigen > antigen.zsh

Install fzf

git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
~/.fzf/install --no-update-rc --no-bash --no-zsh

Installl required tools and packages

yay -S \
bat \
exa \
the_silver_searcher \
xclip \
nnn \
peco \
jq \
python3-pip \
python3-venv \
unzip \
nmap \
ffuf \
wfuzz \
remmina \
fortune-mod \
toilet \
cowsay \
go

Build Catppuccin theme for bat

bat cache --build

Install docker and docker compose

yay -S docker.io docker-compose docker-clean
sudo usermod -aG docker $USER
newgrp docker
sudo systemctl enable docker --now

VSCode

  • Sync settings from github
  • settings.json and keybinding in the ansible repo if required

SublimeText

  • Install package control
  • Install package sync using package control
  • Wait for extension to install and restart subl

Post setup, set wakatime API key via the extension to track time spent on editors

Starship Switched the shell prompt to startship

# cmake should be installed for this 
cargo install starship --locked
curl -sS https://starship.rs/install.sh | sh

Terminator

Catppuccin theme already in the config files, execute with terminator -p Catppuccin_Mocha

Managing dotfiles

Open a new terminal or source the rc file and run dot to get an overview of all added dotfiles. (M means the file is modified but not staged)

> dot
 M   /.bashrc                                                 Fix bashrc fzf import
     /.config/bat/config                                      Change bat theme
     /.config/nano/nanorc                                     Add nano rc file
...
...

dot supports all git operations, for example,

  • dot add to stage a file
  • dot commit -m '' to commit the files
  • dot push to push to remote
  • dot lg to view log and so on

About

Linux dotfiles managed using a bare git repo

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages