Skip to content

Commit

Permalink
myTermux-v.0.4.3 pre
Browse files Browse the repository at this point in the history
  • Loading branch information
nihsx committed Apr 8, 2021
1 parent 8965d0d commit b628bd4
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 12 deletions.
1 change: 0 additions & 1 deletion .tmux-themepack
Submodule .tmux-themepack deleted from 7c5990
55 changes: 44 additions & 11 deletions .xshin.var
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,11 @@ function banner() {
function reposize() {

if [ "$#" -eq 2 ]; then

echo "$(echo "scale=2
$(curl https://api.github.com/repos/$1/$2 2>/dev/null | grep size | head -1 | tr -dc '[:digit:]') / 1024" | bc) MB"

fi

}
Expand All @@ -76,7 +79,6 @@ vardotfiles=(
".color-toys"
".zshrc"
".tmux.conf"
".tmux-themepack"
".termux"

)
Expand Down Expand Up @@ -118,7 +120,7 @@ function dotfiles() {
sleep 2
cp $DIR/$dotfile $HOME/$dotfile

check() {
function check() {

if [[ -f $HOME/$dotfile ]]; then

Expand Down Expand Up @@ -147,7 +149,7 @@ function dotfiles() {
sleep 2
cp -R $DIR/$dotfile $HOME/$dotfile

check() {
function check() {

if [[ -d $HOME/$dotfile ]]; then

Expand Down Expand Up @@ -191,6 +193,35 @@ function dotfiles() {

}

function tmuxtheme() {

echo -e "\n⚙️ Installing tmux-theme\n"

start_spinner "‏‏‎‏‏‎ ‎‏‏‎ ‎📦 tmux-themepack"
git clone https://github.com/jimeh/tmux-themepack.git ~/.tmux-themepack/ &>/dev/null

function check() {

if [[ -d ~/.tmux-themepack ]]; then

stop_spinner $?

else

cp "empty" > /dev/null 2>&1
stop_spinner $?
start_spinner "‏‏‎‏‏‎ ‎‏‏‎ ‎📦 tmux-themepack"
git clone https://github.com/jimeh/tmux-themepack.git ~/.tmux-themepack/ &>/dev/null
check

fi

}

check

}

# Lightweight Installation
lightweightpkgs=(

Expand Down Expand Up @@ -228,7 +259,7 @@ function lightweightpackage() {
start_spinner "‏‏‎‏‏‎ ‎‏‏‎ ‎📦 $lightweightpkg"
pkg install -y $lightweightpkg &>/dev/null

check() {
function check() {

ipkg=$(pkg list-installed $lightweightpkg 2> /dev/null | tail -n 1)
cpkg=${ipkg%/*}
Expand Down Expand Up @@ -294,7 +325,7 @@ function fullpackage() {
start_spinner "‏‏‎‏‏‎ ‎‏‏‎ ‎📦 $fullpkg"
pkg install -y $fullpkg &>/dev/null

check() {
function check() {

ipkg=$(pkg list-installed $fullpkg 2> /dev/null | tail -n 1)
cpkg=${ipkg%/*}
Expand Down Expand Up @@ -331,7 +362,7 @@ function zshrepo() {
start_spinner "‏‏‎‏‏‎ ‎‏‏‎ ‎📦 oh-my-zsh"
git clone git://github.com/robbyrussell/oh-my-zsh.git $HOME/.oh-my-zsh/ &>/dev/null

check() {
function check() {

if [[ -d $HOME/.oh-my-zsh ]]; then

Expand Down Expand Up @@ -362,7 +393,7 @@ function zshrepo() {
start_spinner "‏‏‎‏‏‎ ‎‏‏‎ ‎📦 zsh-syntax-highlighting"
git clone git://github.com/zsh-users/zsh-syntax-highlighting.git $HOME/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting &>/dev/null

check() {
function check() {

if [[ -d $HOME/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting ]]; then

Expand Down Expand Up @@ -391,7 +422,7 @@ function zshrepo() {
start_spinner "‏‏‎‏‏‎ ‎‏‏‎ ‎📦 zsh-autosuggestions"
git clone git://github.com/zsh-users/zsh-autosuggestions.git $HOME/.oh-my-zsh/custom/plugins/zsh-autosuggestions &>/dev/null

check() {
function check() {

if [[ -d $HOME/.oh-my-zsh/custom/plugins/zsh-autosuggestions ]]; then

Expand Down Expand Up @@ -421,12 +452,12 @@ function shell() {

echo -e "\n⚙️ Setting SHELL default"

zsh() {
function zsh() {

start_spinner "‏‏‎‏‏‎ ‎‏‏‎ ‎📦 change shell to zsh"
sleep 2

check() {
function check() {

if [[ $(which zsh) == "/data/data/com.termux/files/usr/bin/zsh" ]]; then

Expand Down Expand Up @@ -469,7 +500,7 @@ function owl4cezsh() {
sleep 2
cp $DIR/.oh-my-zsh/custom/themes/$owl4cetheme $HOME/.oh-my-zsh/custom/themes/$owl4cetheme

check() {
function check() {

if [[ -f $HOME/.oh-my-zsh/custom/themes/$owl4cetheme ]]; then

Expand Down Expand Up @@ -499,8 +530,10 @@ function neovimplug() {
sleep 2

(

set -e
nvim --headless +PlugInstall +qall > /dev/null 2>&1

)

if [ $? -eq 0 ]; then
Expand Down
5 changes: 5 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,13 @@ if [[ -f $HOME/.xshin.var ]]; then
dotfiles

if [[ -d $HOME/.config/nvim ]]; then

rm -rf $HOME/.config/nvim

fi

tmuxtheme

welcome
permission

Expand All @@ -41,6 +45,7 @@ if [[ -f $HOME/.xshin.var ]]; then
shell
owl4cezsh
dotfiles
tmuxtheme
neovimplug
welcome
permission
Expand Down

0 comments on commit b628bd4

Please sign in to comment.