summarylogtreecommitdiffstats
path: root/zsh.install
blob: e342a961e738dd0f622af6c24de6b711a00a7c8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

post_install() {
	grep -qe '^/bin/zsh$' etc/shells || echo '/bin/zsh' >> etc/shells
	grep -qe '^/usr/bin/zsh$' etc/shells || echo '/usr/bin/zsh' >> etc/shells
}

post_upgrade() {
	post_install
}

pre_remove() {
	sed -i -r '/^(\/usr)?\/bin\/zsh$/d' etc/shells
}