Skip to content

Commit 746fd10

Browse files
committed
Small changes to git/ssh/gpg setup
1 parent f1985aa commit 746fd10

File tree

3 files changed

+33
-26
lines changed

3 files changed

+33
-26
lines changed

installer.sh

+29-25
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,23 @@ BASEDIR="$(cd "$(dirname "$0")" && pwd)"
55
PLATFORM="$(uname | tr '[:upper:]' '[:lower:]')"
66

77
link() {
8-
# ln -sfT replacement in case of Mac OS
9-
case $PLATFORM in
10-
linux*)
11-
ln -sfT "$1" "$2"
12-
;;
13-
darwin*)
14-
ln -sfh "$1" "$2"
15-
;;
16-
*)
17-
ln -sfT "$1" "$2"
18-
;;
19-
esac
8+
# ln -sfT replacement in case of Mac OS
9+
case $PLATFORM in
10+
linux*)
11+
ln -sfT "$1" "$2"
12+
;;
13+
darwin*)
14+
ln -sfh "$1" "$2"
15+
;;
16+
*)
17+
ln -sfT "$1" "$2"
18+
;;
19+
esac
2020
}
2121

2222
link "$BASEDIR/bash/bashrc" "$HOME/.bashrc"
2323
link "$BASEDIR/bash/bashrc" "$HOME/.bash_profile"
24+
link "$BASEDIR/zsh/zshrc" "$HOME/.zshrc"
2425
link "$BASEDIR/vim/" "$HOME/.vim"
2526

2627
mkdir -vp "$HOME/.config/"
@@ -47,25 +48,28 @@ link "$BASEDIR/gpg/gpg-agent.conf" "$HOME/.gnupg/gpg-agent.conf"
4748
link "$BASEDIR/scripts" "$HOME/.scripts"
4849

4950
case $PLATFORM in
50-
darwin*)
51-
find "$BASEDIR/fonts/" -name "*.otf" -type f -exec cp {} ~/Library/Fonts \;
52-
find "$BASEDIR/fonts/" -name "*.ttf" -type f -exec cp {} ~/Library/Fonts \;
53-
;;
54-
*)
55-
link "$BASEDIR/fonts" "$HOME/.fonts"
56-
;;
51+
darwin*)
52+
find "$BASEDIR/fonts/" -name "*.otf" -type f -exec cp {} ~/Library/Fonts \;
53+
find "$BASEDIR/fonts/" -name "*.ttf" -type f -exec cp {} ~/Library/Fonts \;
54+
;;
55+
*)
56+
link "$BASEDIR/fonts" "$HOME/.fonts"
57+
;;
5758
esac
5859

5960
link "$BASEDIR/x11/xinitrc" "$HOME/.xinitrc"
6061
link "$BASEDIR/x11/xserverrc" "$HOME/.xserverrc"
6162

62-
# For 24-bit color in CLI Emacs, a terminfo definition needs to exist
6363
case $PLATFORM in
64-
darwin*)
65-
;;
66-
*)
67-
tic -x -o ~/.terminfo "$BASEDIR/terminfo/xterm-24bits.terminfo"
68-
;;
64+
darwin*)
65+
66+
# Disable keychain saving in pinentry
67+
defaults write org.gpgtools.common UseKeychain NO
68+
;;
69+
*)
70+
# For 24-bit color in CLI Emacs, a terminfo definition needs to exist
71+
tic -x -o ~/.terminfo "$BASEDIR/terminfo/xterm-24bits.terminfo"
72+
;;
6973
esac
7074

7175
./gnome/settings.sh
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Host github.com
1+
Host github.com github
22
HostName ssh.github.com
33
Port 443
44
User git

zsh/zshrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
if [ -f ~/.bashrc ]; then
2+
source ~/.bashrc
3+
fi

0 commit comments

Comments
 (0)