mirror of
https://github.com/JanJastrow/.dotfiles.git
synced 2024-09-08 02:10:48 +02:00
Compare commits
3 Commits
649ddcfa06
...
abf51a8ac2
Author | SHA1 | Date | |
---|---|---|---|
|
abf51a8ac2 | ||
|
f2163c761d | ||
|
d78a4f114c |
22
gitconfig
Normal file
22
gitconfig
Normal file
@ -0,0 +1,22 @@
|
||||
# Custom (default) settings for git
|
||||
[user]
|
||||
name = Jan Jastrow
|
||||
username = jan_j
|
||||
email = mail@jastrow.me
|
||||
[core]
|
||||
fsmonitor = true
|
||||
editor = nano -w
|
||||
[init]
|
||||
defaultBranch = main
|
||||
[alias]
|
||||
br = branch
|
||||
c = commit
|
||||
co = checkout
|
||||
ca = c -a
|
||||
p = pull
|
||||
l = log --all --color --graph --pretty=format:'%Cred%h%Creset %G?%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit # Colorful and easy to read log
|
||||
conflict = diff --name-only --diff-filter=U
|
||||
hash = !git rev-parse HEAD | cut -c 1-8
|
||||
undo = !f() { git reset --hard $(git rev-parse --abbrev-ref HEAD)@{${1-1}}; }; f
|
||||
[branch]
|
||||
sort = -committerdate
|
@ -1,15 +1,18 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ ! -x "$(which zsh)" ]; then
|
||||
echo "zsh not found"
|
||||
exit
|
||||
fi
|
||||
|
||||
rm ~/.zshrc
|
||||
ln -s ~/.dotfiles/zshrc ~/.zshrc
|
||||
ln -s ~/.dotfiles/tmux/tmux.conf ~/.tmux.conf
|
||||
ln -s ~/.dotfiles/gitconfig ~/.gitconfig
|
||||
mkdir ~/.dotfiles/this-machine
|
||||
touch ~/.dotfiles/this-machine/zsh
|
||||
touch ~/.dotfiles/this-machine/tmux.conf
|
||||
|
||||
sudo chsh -s "$(which zsh)" $USER
|
||||
|
||||
# If private repo is available, add ssh config + hosts
|
||||
@ -23,6 +26,5 @@ fi
|
||||
# Remove old bash files
|
||||
rm ~/.bashrc
|
||||
rm ~/.bash_logout
|
||||
rm ~/.bash_history
|
||||
|
||||
zsh
|
||||
|
Loading…
Reference in New Issue
Block a user