-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·54 lines (38 loc) · 1.77 KB
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/bin/bash
sudo apt-get update && sudo apt-get upgrade -y
sudo apt-get install -y git emacs tmux i3 rofi curl zsh stow golang
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# configure git
git config --global user.name "Patrick Flynn"
git config --global credential.helper cache
git config --global credential.helper "cache --timeout=31540000000"
git config --global alias.lg "log --color --graph --pretty=format:'%C(auto)%h -%d %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'"
git config --global alias.st 'status'
git config --global alias.br 'branch --all'
git config --global alias.cm 'checkout main'
git config --global alias.co 'checkout'
git config --global alias.rbm 'rebase main'
git config --global alias.rbu 'pull --rebase upstream main'
git config --global alias.recommit 'commit -a --reuse-message=HEAD@{1}'
git config --global alias.uncommit 'reset --soft HEAD^'
git config --global alias.last 'log -1 HEAD'
git config --global commit.gpgsign true # Sign all commits
git config --global tag.gpgsign true # Sign all tags
git config --global gpg.x509.program gitsign # Use gitsign for signing
git config --global gpg.format x509 # gitsign expects x509 args
git config --global commit.gpgsign true # Sign all commits
git config --global tag.gpgsign true # Sign all tags
git config --global gpg.x509.program gitsign # Use gitsign for signing
git config --global gpg.format x509 # gitsign expects x509 args
go install github.com/sigstore/gitsign@latest
cd ~
git clone https://github.com/patflynn/cosmo.git
cd cosmo
# configure for chromoting with X34 and i3
stow X
# configure the always stuff
mv ~/.emacs.d ~/tmp/.
mv ~/.config/i3 ~/tmp/.
mv ~/.tmux.conf ~/tmp/.
mv ~/.zshrc ~/tmp/.
stow --target =/home/${USER} X emacs tmux zsh i3