Skip to content
Better have them somewhere in case the hard drive dies again.
Branch: main
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
albert
code
home
sublime
zsh/plugins
.gitmodules
README.md
collect.sh
deploy.sh
ubuntu-tips.md

README.md

dotfiles

Usage

git clone --recurse-submodules git@github.com:kleinfreund/dotfiles.git
cd dotfiles

If you forgot to clone with the --recurse-submodules argument, you can get them with this:

git submodule update --init

Use the deploy script to create symbolic links in $HOME to all files in this repositories' home/ directory.

./deploy.sh

Use the collect script to backup configuration files of Sublime Text and Visual Studio Code.

./collect.sh

Adding a new ZSH plugin as a submodule

git submodule add https://github.com/zsh-users/zsh-syntax-highlighting zsh/plugins/zsh-syntax-highlighting
git submodule add https://github.com/zsh-users/zsh-autosuggestions zsh/plugins/zsh-autosuggestions
git submodule init

Then, add the plugins to .zshrc:

plugins=(
  zsh-syntax-highlighting
  zsh-autosuggestions
)

Update all submodules

git submodule update --recursive --remote

Removing a submodule

git submodule deinit -f zsh/plugins/zsh-syntax-highlighting
rm -rf .git/modules/zsh/plugins/zsh-syntax-highlighting
git rm -f zsh/plugins/zsh-syntax-highlighting
git config -f .git/config --remove-section submodule.zsh/plugins/zsh-syntax-highlighting
git config -f .gitmodules --remove-section submodule.zsh/plugins/zsh-syntax-highlighting
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.