diff --git a/.gitconfig b/.gitconfig index 69f091d..8a7bd86 100644 --- a/.gitconfig +++ b/.gitconfig @@ -1,18 +1,20 @@ [user] - email = matthewbinning@pm.me - name = Matthew Binning - username = matthew.binning - editor = vi - autocrlf = input + email = matthewbinning@pm.me + name = Matthew Binning + username = matthew.binning + editor = vi + autocrlf = input [init] - defaultBranch = main + defaultBranch = main [pull] - rebase = true + rebase = true [push] - autoSetupRemote = true + autoSetupRemote = true [alias] - st = status - sw = switch - lg = log --oneline --graph --decorate + br = branch + rb = rebase + st = status + sw = switch + l = log --oneline --graph --decorate [credential] - helper = store + helper = store diff --git a/.profile b/.profile index 6304525..6f58512 100644 --- a/.profile +++ b/.profile @@ -26,6 +26,7 @@ export KUBECONFIG # Shortenings alias \ d='docker' \ + g='git' \ k='kubectl' \ s='sudo' diff --git a/README.md b/README.md index 455572d..7ede059 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,8 @@ # dotfiles -This assumes you are on a bash-based system, like Debian. -Clone this repository into your home folder. -Then `cd ~/dotfiles && ./install.sh`. +This uses symlinks to quickly set up a bash-based system, like NixOS or Debian. +Clone this repository into your home folder. +Then `cd ~/dotfiles && ./install.sh`. + +After first install, the symlinks will be set up. +Thereafter, `git pull` will simply bring in updates to these managed dotfiles. diff --git a/install.sh b/install.sh index 3ba33df..9d7d9b4 100755 --- a/install.sh +++ b/install.sh @@ -1,3 +1,3 @@ #!/usr/bin/env sh ln -si "$HOME"/dotfiles/.gitconfig ~/.gitconfig -printf '. ~/dotfiles/.profile' >> ~/.bashrc +printf '. ~/dotfiles/.profile' > ~/.bashrc