Compare commits

...

2 Commits

Author SHA1 Message Date
02abe03153 Fixed installing fonts & easytether-usb 2024-12-14 18:28:58 -08:00
77bf4ccfdd Fixed installing fonts & easytether-usb 2024-12-14 18:28:23 -08:00

View File

@ -177,6 +177,7 @@ echo ''
echo "Install easytether-usb ? [y/n]"
read inputeasytether
if [[ $inputeasytether =~ ^[Yy]$ ]]; then
sudo rm -rf /etc/NetworkManager/system-connections/tap-easytether
wget http://www.mobile-stream.com/beta/arch/easytether-0.8.9-1-x86_64.pkg.tar.xz
sudo pacman -U easytether-0.8.9-1-x86_64.pkg.tar.xz
wget https://archive.archlinux.org/packages/o/openssl-1.1/openssl-1.1-1.1.1.t-1-x86_64.pkg.tar.zst
@ -184,6 +185,7 @@ if [[ $inputeasytether =~ ^[Yy]$ ]]; then
sudo cp usr/lib/libcrypto.so.1.1 /usr/lib/
sudo cp usr/lib/libssl.so.1.1 /usr/lib/
sudo rm -rf usr easytether-0.8.9-1-x86_64.pkg.tar.xz openssl-1.1-1.1.1.t-1-x86_64.pkg.tar.zst
sudo ldconfig
fi
echo ''
@ -196,7 +198,12 @@ if [[ $inputohmyzsh =~ ^[Yy]$ ]]; then
sed -i 's/^ZSH_THEME=.*$/ZSH_THEME="powerlevel10k\/powerlevel10k"/' ~/.zshrc
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
sed -i 's/plugins=(\(git\))/plugins=(\n \1\n zsh-autosuggestions\n)/' ~/.zshrc
sudo wget https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20{Regular,Bold,Italic,Bold%20Italic}.ttf -P /usr/share/fonts/MesloLGS/
sudo wget https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Regular.ttf -P /usr/share/fonts/MesloLGS/
sudo wget https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Bold.ttf -P /usr/share/fonts/MesloLGS/
sudo wget https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Italic.ttf -P /usr/share/fonts/MesloLGS/
sudo wget https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Bold%20Italic.ttf -P /usr/share/fonts/MesloLGS/
sudo su -c '
{
cat << EOF
export WORK_WEEK=\$(date "+%yww%W.%u")
@ -227,5 +234,5 @@ alias pmpkgins='sudo pacman -U'
alias browser='lynx https://search.1ndev.com/'
alias androidscreen="scrcpy -w"
EOF
} >> ~/.zshrc
} >> ~/.zshrc'
fi