Source: [https://www.atlassian.com/git/tutorials/dotfiles] # Required tools xclip ## Fonts fonts-hack fonts-powerline IcoMoon Ultimate ## Alacritty Download from here: [https://github.com/jwilm/alacritty/releases] ```sh apt install ./Alacri* apt install libxcursor update-alternatives --install /usr/bin/x-terminal-emulator x-terminal-emulator /usr/bin/alacritty 20 ``` Evtl. für Terminfo im Repository unter Extras noch alacritty.info ziehen und ```sh tic -xe alacritty,alacritty-direct alacritty.info ``` ## bspwm ## sxhkd ## zsh Install Hack Nerd Font from here https://github.com/ryanoasis/nerd-fonts/releases/ ```sh unzip Hack* Fonts wählen, die man nutzen will und nach ~/.local/share/fonts/ koopieren fc-cache -f -v fc-list | grep "Hack" ``` to permamently switch shell to zsh: ```sh chsh -s $(which zsh) ``` link configs to XDG_CONFIG_HOME ```sh ln -s /home/marc/.config/zsh/.zshenv /home/marc/.zshenv ln -s /home/marc/.config/zsh/.zshrc /home/marc/.zshrc ``` # Initialization ```sh git init --bare $HOME/dotfiles alias dot="/usr/bin/git --git-dir=$HOME/dotfiles/ --work-tree=$HOME" (add this to .zshenv or .bashrc) source .zshenv dot config --local status.showUntrackedFiles no git remote add origin https://gitea.cloudpshere.duckdns.org/marc/dotfiles.git git remote -v ``` # Usage ## Add or edit files in repository ```sh dot add /path/to/file dot commit -m "some message" dot push ``` ## add 3rd party repositories or update them ```sh #move to where you want to place the module # e.g. .config/zsh/plugins dot submodule add -b master https://github.com/PATH/TO.git #update submodules dot submodule update --remote ``` ## move to a new computer ```sh cd alias dot="/usr/bin/git --git-dir=$HOME/dotfiles/ --work-tree=$HOME" (add to .bashrc) source .bashrc echo "dotfiles" >> .gitignore git clone --bare https://gitea.cloudsphere.duckdns.org/marc/dotfiles.git $HOME/dotfiles dot checkout cd dotfiles dot config --local status.showUntrackedFiles no ``` ## pull repository ```sh dot clone https://gitea.cloudsphere.duckdns.org/marc/dotfiles.git dot pull origin master ```