alias poweroff='sudo /sbin/poweroff'
alias halt='sudo /sbin/halt'
alias shutdown='sudo /sbin/shutdown'
-alias apt-get='sudo apt-get'
-alias update='sudo apt-get update && sudo apt-get upgrade'
+alias update='sudo apt update && sudo apt upgrade -y'
# My shortcuts
alias c='clear'
alias info='info --vi-keys'
alias ag='ag --path-to-ignore=$HOME/.ignore --skip-vcs-ignores'
alias rg='rg --path-separator="//"'
-alias dotfiles='git --git-dir=$HOME/.dotfiles --work-tree=$HOME'
-alias dit='dotfiles'
+alias got='git --git-dir=$HOME/.dotfiles --work-tree=$HOME'
alias sudo='sudo '
alias wget='wget -c'
+[user]\r
+ name = Jannik ZANDER\r
+ email = jannik@zndr.dk\r
[core]\r
editor = vim\r
pager = less\r
application/x-debian-package=gdebi.desktop;
application/x-cd-image=gnome-disk-image-writer.desktop;gnome-disk-image-mounter.desktop;
text/plain=code.desktop;
+application/zip=org.gnome.FileRoller.desktop;
# default for all
-IdentityFile ~/.ssh/id_rsa
+IdentityFile ~/.ssh/windy.key
# override as per host
Host silver
HostName 192.168.1.100
- User jaz
- IdentityFile ~/.ssh/jaza.key
-Host windy zndr zndr.dk git.zndr.dk
+Host windy
HostName 192.168.1.101
+
+Host git.zndr.dk
+ Hostname zndr.dk
User git
- IdentityFile ~/.ssh/zndr.key
+ PreferredAuthentications publickey
+ IdentityFile ~/.ssh/windy.key
+
+Host zndr.dk
+ User jaz
1) First download 'dotfiles.sh'
-> $ git archive --remote=git@jaza.me:jaz/dotfiles.git master bin/dotfiles.sh | tar -x --strip-components 1
+> $ git archive --remote=git@git.zndr.dk:jannik/dotfiles.git master bin/dotfiles.sh | tar -x --strip-components 1
2) Next execute it with
#!/usr/bin/env bash
-# Define dit (dotfiles-git) function
-function dit()
+# Define got (git-dotfiles) function
+function got()
{
- git --git-dir=$HOME/.dotfiles --work-tree=$HOME "$@"
+ got --git-dir=$HOME/.dotfiles --work-tree=$HOME "$@"
}
# Initial setup
dit init
dit config --local status.showUntrackedFiles no
-dit remote add origin git@jaza.me:jaz/dotfiles.git
+dit remote add origin git@git/git.zndr.dk:jannik/dotfiles.git
dit fetch
dit reset --hard origin/master
dit branch -u origin/master