Will it work for Termux?
This commit is contained in:
parent
8652fdb570
commit
24cafb0a84
|
@ -26,6 +26,10 @@ available_pkgbuild() {
|
||||||
true
|
true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
available_Tapt() {
|
||||||
|
[ -f /data/data/com.termux/files/usr/bin/apt ]
|
||||||
|
}
|
||||||
|
|
||||||
# Update the database
|
# Update the database
|
||||||
update_Rpacman() {
|
update_Rpacman() {
|
||||||
sudo pacman -Syu --noconfirm
|
sudo pacman -Syu --noconfirm
|
||||||
|
@ -64,18 +68,8 @@ installed_pkgbuild() { # package
|
||||||
# TODO Might need all the systems package too
|
# TODO Might need all the systems package too
|
||||||
}
|
}
|
||||||
|
|
||||||
installed_Rapt() {
|
installed_apt() { # package
|
||||||
STATUS=$(mktemp)
|
dpkg -s "$1"
|
||||||
LANG=C dpkg-query --status $1 &> $STATUS
|
|
||||||
installed=0
|
|
||||||
if [ $? == 0 ]; then
|
|
||||||
cat $STATUS | grep '^Status:' | grep ' installed' --quiet
|
|
||||||
if [ $? == 0 ]; then
|
|
||||||
installed=1
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
rm -f $STATUS > /dev/null
|
|
||||||
return $installed
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Test if available in the repositories
|
# Test if available in the repositories
|
||||||
|
@ -101,6 +95,10 @@ installable_makepkg() {
|
||||||
installable_aur
|
installable_aur
|
||||||
}
|
}
|
||||||
|
|
||||||
|
installable_apt() {
|
||||||
|
apt-cache show "$1" &> /dev/null
|
||||||
|
}
|
||||||
|
|
||||||
# Tell if it hadles mutiple argument for install
|
# Tell if it hadles mutiple argument for install
|
||||||
|
|
||||||
multiinstall_pacman() {
|
multiinstall_pacman() {
|
||||||
|
@ -125,10 +123,14 @@ install_Ryay() {
|
||||||
yay -S --needed --noconfirm $@
|
yay -S --needed --noconfirm $@
|
||||||
}
|
}
|
||||||
|
|
||||||
install_Rapt() {
|
install_Tapt() {
|
||||||
apt install -y $@
|
apt install -y $@
|
||||||
}
|
}
|
||||||
|
|
||||||
|
install_Rapt() {
|
||||||
|
sudo apt install -y $@
|
||||||
|
}
|
||||||
|
|
||||||
install_Rpip() {
|
install_Rpip() {
|
||||||
sudo pip install $@
|
sudo pip install $@
|
||||||
}
|
}
|
||||||
|
@ -223,6 +225,7 @@ addUserInstallers() {
|
||||||
addInstaller Umakepkg
|
addInstaller Umakepkg
|
||||||
addInstaller Upip
|
addInstaller Upip
|
||||||
addInstaller Upkgbuild
|
addInstaller Upkgbuild
|
||||||
|
addInstaller Tapt # Termux
|
||||||
}
|
}
|
||||||
|
|
||||||
# Installers that install with the system package manager
|
# Installers that install with the system package manager
|
||||||
|
|
|
@ -10,13 +10,17 @@ mkdir -p $HOME/.cache
|
||||||
mkdir -p $HOME/.cache/zsh
|
mkdir -p $HOME/.cache/zsh
|
||||||
mkdir -p $HOME/.cache/mpd
|
mkdir -p $HOME/.cache/mpd
|
||||||
mkdir -p $HOME/.ssh
|
mkdir -p $HOME/.ssh
|
||||||
|
mkdir -p $HOME/.local/bin
|
||||||
|
|
||||||
. $HOME/.config/scripts/softwareList
|
. $HOME/.config/scripts/softwareList
|
||||||
|
|
||||||
echo "Doing stuff cuz"
|
echo "Doing stuff cuz"
|
||||||
$HOME/.config/Xresources/configure
|
if command -v Xorg > /dev/null
|
||||||
|
then
|
||||||
|
$HOME/.config/Xresources/configure
|
||||||
|
pip install --user --requirement $HOME/.config/lemonbar/requirements.txt
|
||||||
|
fi
|
||||||
changeColors monokai
|
changeColors monokai
|
||||||
pip install --user --requirement $HOME/.config/lemonbar/requirements.txt
|
|
||||||
vim +PlugUpgrade +PlugUpdate +PlugInstall +qall
|
vim +PlugUpgrade +PlugUpdate +PlugInstall +qall
|
||||||
|
|
||||||
echo '# Alt keys on keypad
|
echo '# Alt keys on keypad
|
||||||
|
|
|
@ -104,9 +104,10 @@ i moreutils # Advanced shell commands (ts, sponge...)
|
||||||
i tmux # Terminal multiplexer
|
i tmux # Terminal multiplexer
|
||||||
i bash-completion # Shell completions
|
i bash-completion # Shell completions
|
||||||
i fzf # Fancy file finder
|
i fzf # Fancy file finder
|
||||||
i highlight # Syntax highlighter
|
i highlight # Syntax highlighter (TODO No termux)
|
||||||
|
|
||||||
i zsh # Shell
|
i zsh # Shell
|
||||||
|
# TODO Arch only for the following but not a problem
|
||||||
i zsh-autosuggestions # Shell suggestions
|
i zsh-autosuggestions # Shell suggestions
|
||||||
i zsh-completions # Shell completions
|
i zsh-completions # Shell completions
|
||||||
i zsh-history-substring-search # Shell config
|
i zsh-history-substring-search # Shell config
|
||||||
|
@ -117,19 +118,19 @@ i zsh-syntax-highlighting # Shell highlighting
|
||||||
|
|
||||||
# Monitoring utilities
|
# Monitoring utilities
|
||||||
i ncdu # Explore directories by weight on disk
|
i ncdu # Explore directories by weight on disk
|
||||||
i lsof # Find who/what uses the files
|
i lsof # Find who/what uses the files (TODO No termux)
|
||||||
i pv # Allow to show progress in pipe
|
i pv # Allow to show progress in pipe
|
||||||
|
|
||||||
# Network utilities
|
# Network utilities
|
||||||
i openssh # SSH connections
|
i openssh # SSH connections
|
||||||
i proxytunnel # Proxy connections through HTTPS
|
# i proxytunnel # Proxy connections through HTTPS (TODO No termux)
|
||||||
i curl # Transfer URL
|
i curl # Transfer URL
|
||||||
i wget # Download URL
|
i wget # Download URL
|
||||||
i gnu-netcat # Network piping
|
i gnu-netcat netcat # Network piping
|
||||||
i socat # Multi-purpose relay
|
i socat # Multi-purpose relay
|
||||||
i rsync # Remote file-copying tool
|
i rsync # Remote file-copying tool
|
||||||
i speedtest-cli # Network speed benchmarker
|
i speedtest-cli # Network speed benchmarker (TODO No termux)
|
||||||
i bind-tools # DNS queryier
|
i bind-tools dnsutils # DNS queryier
|
||||||
|
|
||||||
# Archives utilities
|
# Archives utilities
|
||||||
i unzip # Unarchive ZIP files
|
i unzip # Unarchive ZIP files
|
||||||
|
|
Loading…
Reference in a new issue