移除两个无法用 brew 安装的软件
This commit is contained in:
parent
7fec07e333
commit
05f2644f9b
@ -61,8 +61,8 @@ configure_install_basic() {
|
|||||||
configure_install_useful() {
|
configure_install_useful() {
|
||||||
if [ "$(uname)" = "Darwin" ]; then
|
if [ "$(uname)" = "Darwin" ]; then
|
||||||
[ "$1" != "noupdate" ] && brew update
|
[ "$1" != "noupdate" ] && brew update
|
||||||
brew install hexyl bat tree p7zip-full
|
brew install hexyl bat tree p7zip
|
||||||
brew install hping3 mtr
|
brew install mtr
|
||||||
else
|
else
|
||||||
[ "$1" != "noupdate" ] && sudo apt-get update
|
[ "$1" != "noupdate" ] && sudo apt-get update
|
||||||
sudo apt-get install hexyl bat tree fd-find fzf -y
|
sudo apt-get install hexyl bat tree fd-find fzf -y
|
||||||
@ -182,8 +182,14 @@ configure_zsh() {
|
|||||||
|
|
||||||
# 如果 ~/.zshrc 里面没有 source ~/.zsh_user 则添加
|
# 如果 ~/.zshrc 里面没有 source ~/.zsh_user 则添加
|
||||||
if ! grep -qx "source ~/.zsh_user" ~/.zshrc; then
|
if ! grep -qx "source ~/.zsh_user" ~/.zshrc; then
|
||||||
|
if [ "$(uname)" = "Darwin" ]; then
|
||||||
|
# macOS
|
||||||
|
printf "\nsource ~/.zsh_user\n" >> ~/.zshrc
|
||||||
|
else
|
||||||
|
# Linux
|
||||||
sed -i '$a source ~/.zsh_user' ~/.zshrc
|
sed -i '$a source ~/.zsh_user' ~/.zshrc
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
# 如果 ~/.zshrc 里面没有 conda initialize 则运行 mamba init zsh
|
# 如果 ~/.zshrc 里面没有 conda initialize 则运行 mamba init zsh
|
||||||
if ! grep -q "conda initialize" ~/.zshrc; then
|
if ! grep -q "conda initialize" ~/.zshrc; then
|
||||||
@ -333,6 +339,8 @@ configure_fail2ban() {
|
|||||||
|
|
||||||
configure_iptables() {
|
configure_iptables() {
|
||||||
[ $offline -eq 1 ] && return
|
[ $offline -eq 1 ] && return
|
||||||
|
[ "$(uname)" = "Darwin" ] && return
|
||||||
|
|
||||||
if command_exists ifquery && systemctl is-active --quiet networking; then
|
if command_exists ifquery && systemctl is-active --quiet networking; then
|
||||||
# ifupdown: /etc/network/if-pre-up.d/iptables-load
|
# ifupdown: /etc/network/if-pre-up.d/iptables-load
|
||||||
[ -f /etc/network/if-pre-up.d/iptables-load ] && return
|
[ -f /etc/network/if-pre-up.d/iptables-load ] && return
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user