fix ssh + add config.fish in termux during installation

This commit is contained in:
Mylloon 2024-04-03 08:53:34 +02:00
parent 4e717ad112
commit f0a01f5b6b
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
2 changed files with 4 additions and 0 deletions

View file

@ -229,6 +229,7 @@ sync-windows:
# Termux distro specific
sync-termux:
@$(SED) "/fish_ssh_agent/d" $(HOME)/.config/fish/config.fish
@$(SED) "/topgrade/d" $(HOME)/.config/fish/conf.d/abbr.fish
@echo "Fix-for-Termux applied!"
@echo

View file

@ -43,6 +43,8 @@ function main {
wget -q "${repo}"/.config/fish/functions/fish_prompt.fish -P "$HOME"/.config/fish/functions/
# EZA colors
fish -c "set -Ux EXA_COLORS 'di=1;36:da=35'"
# Add configuration
wget -q "${repo}"/.config/fish/config.fish -O "$HOME"/.config/fish/config.fish
# Add abbreviations
wget -q "${repo}"/.config/fish/conf.d/abbr.fish -O "$HOME"/.config/fish/conf.d/abbr.fish
# Add aliases
@ -77,6 +79,7 @@ function main {
# Since Termux isn't used a lot, I don't plan to make it a real distro
# supported by thoses scripts, so I give the bare minimum support to it
# Fix topgrade
sed -i "/fish_ssh_agent/d" "$HOME"/.config/fish/config.fish
sed -i "/topgrade/d" "$HOME"/.config/fish/conf.d/abbr.fish
}