-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinstaller.sh
More file actions
executable file
·148 lines (139 loc) · 4.49 KB
/
Copy pathinstaller.sh
File metadata and controls
executable file
·148 lines (139 loc) · 4.49 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
#! /bin/sh
self=~/.conf;
begon="$self/.begon";
osname=$(uname -s)
# shellcheck source=common_shell/functions.sh
. $self/common_shell/functions.sh
htln () {
s="$self/$1"
d="$HOME/$2"
[ -L "$d" ] || [ -e "$d" ] || (ln -s "$s" "$d" && echo begon "$d" >> "$begon")
if [ ! -L "$d" ]; then
if cmp -s "$1" "$s"; then
echo "warning: $d matches $s but is not symlink";
else
echo "warning: $d does not match $s"
fi
return 1
fi
return 0
}
ensure_directories() {
mkdir -p "$@"
}
ensure_directories ~/.zsh/cache ~/.nano/backup ~/.matplotlib
htln zsh/zshrc .zshrc
htln zsh/zshenv .zshenv
htln sh/profile .profile
htln nano/USE_RC .nanorc
htln nano .mynano
htln atom/ .atom
htln swipl/swipl .swipl
htln X/XCompose .XCompose
htln X/xinitrc .xinitrc
htln X/Xmodmap .Xmodmap
htln X/Xdefaults .Xdefaults
htln X/xserverrc .xserverrc
htln X/xbindkeysrc .xbindkeysrc
#htln X/xsession .xsession
htln mercurial/hgrc .hgrc
htln matplotlib/matplotlibrc .matplotlib/matplotlibrc
htln idesk/ideskrc .ideskrc
htln idesk/idesktop .idesktop
ensure_directories ~/.mplayer
htln mplayer/config .mplayer/config
htln mplayer/mencoder.conf .mplayer/mencoder.conf
htln cvs/cvsrc .cvsrc
htln xpdf/xpdfrc .xpdfrc
htln screen/screenrc .screenrc
htln nvim/home .config/nvim
htln gdb/gdbinit .gdbinit
htln lldb/lldbinit .lldbinit
ensure_directories ~/.config/openbox ~/.config/pianobar ~/.config/libfm ~/.config/youtube-dl ~/.config/yt-dlp ~/.config/http-prompt ~/.config/htop ~/.config/atuin
htln atuin/config.toml .config/atuin/config.toml
htln http-prompt/config.py .config/http-prompt/config.py
htln pianobar/config .config/pianobar/config
htln youtube-dl/config .config/youtube-dl/config
htln youtube-dl/config .config/yt-dlp/config
htln kitty/ .config/kitty
ensure_directories ~/.ptpython
htln ptpython/config.py .ptpython/config.py
htln openbox/menu.xml .config/openbox/menu.xml
htln openbox/rc.xml .config/openbox/rc.xml
ensure_directories ~/.i3
htln i3/config .i3/config
htln i3/i3status.conf .i3status.conf
htln libfm/libfm.conf .config/libfm/libfm.conf
htln htop/htoprc .config/htop/htoprc
htln valgrind/valgrindrc .valgrindrc
htln git/gitconfig .gitconfig
if [ "$osname" = "Darwin" ]
then
htln git/gitconfig.macos .gitconfig.macos
fi
__exists xdg-mime && xdg/install.sh
htln bash/bashrc .bashrc
htln bash/bash_profile.bash .bash_profile
htln tmux/tmux.conf .tmux.conf
htln readline/inputrc .inputrc
ensure_directories ~/.subversion
htln subversion/config .subversion/config
htln mutt/muttrc .muttrc
htln mail/mailrc .mailrc
htln npm/npmrc .npmrc
ensure_directories ~/.xchat2
htln xchat/xchat.conf .xchat2/xchat.conf
ensure_directories ~/.gnupg
htln gpg/gpg.conf .gnupg/gpg.conf
htln gtk/gtk-bookmarks .gtk-bookmarks
htln ack/ackrc .ackrc
htln slate/slate .slate
htln psql/psqlrc .psqlrc
htln irb/irbrc .irbrc
ensure_directories ~/.R
htln R/Rprofile .Rprofile
ensure_directories ~/.ipython/profile_default
htln ipython/ipython_config.py .ipython/profile_default/ipython_config.py
htln sqlite/sqliterc .sqliterc
htln mysql/my.cnf .my.cnf
htln pdb/pdbrc .pdbrc
ensure_directories ~/.virtualenvs
htln ipython/postactivate .virtualenvs/postactivate
htln ipython/postdeactivate .virtualenvs/postdeactivate
ensure_directories ~/.gradle ~/.ammonite
htln gradle/gradle.properties .gradle/gradle.properties
htln ammonite/predef.sc .ammonite/predef.sc
ensure_directories ~/.stack/global-project
htln stack/stack.yaml .stack/global-project/stack.yaml
htln stack/config.yaml .stack/config.yaml
htln gem/gemrc .gemrc
htln mdl/mdlrc .mdlrc
htln ghci/ghci .ghci
ensure_directories ~/.ssh ~/.ssh/s
[ ! -f ~/.ssh/config ] && cp -p $self/ssh/ssh_config.template ~/.ssh/config
ensure_directories ~/.parallel
touch ~/.mail_aliases ~/.parallel/will-cite ~/.hushlogin
_app_support="$HOME/Library/Application Support"
if [ "$osname" = "Darwin" ]
then
mkdir -p "$_app_support/pip" "$_app_support/Code/User"
if [ ! -e "$_app_support/pip/pip.conf" ]
then
ln -s "$self/pip/pip.conf" "$_app_support/pip/pip.conf"
fi
if [ ! -e "$_app_support/Code/User/settings.json" ]
then
ln -s "$self/vscode/settings.json" "$_app_support/Code/User/settings.json"
fi
if [ ! -e "$_app_support/Code - Insiders/User/settings.json" ]
then
mkdir -p "$_app_support/Code - Insiders/User"
ln -s "$self/vscode/settings.json" "$_app_support/Code - Insiders/User/settings.json"
fi
if [ ! -e "$HOME/Library/Preferences/calibre" ];
then
ln -s "/Users/eax/Dropbox/ApplicationData/calibre/preferences" "$HOME/Library/Preferences/calibre"
fi
fi
# add password to config/pianobar/passwd
# import gpg from dbx