diff --git a/.zshrc b/.zshrc index e48f3b5..ccc711d 100644 --- a/.zshrc +++ b/.zshrc @@ -200,7 +200,7 @@ alias vi="vim" alias mux="TERM=screen-256color tmuxinator" alias ls="ls -alh" alias cp="cp -i" -alias df="df -sh" +alias df="df -h" alias free="free -m" alias grep="grep --color=auto" diff --git a/termux/README.md b/termux/README.md new file mode 100644 index 0000000..2600aa0 --- /dev/null +++ b/termux/README.md @@ -0,0 +1,12 @@ +# Termux +This is termux configuration. + +- install necessary dependencies +- use zsh as default shell, setup zsh environment +- custom termux.properties + +## reference + +- +- + diff --git a/termux/colors.properties b/termux/colors.properties new file mode 100644 index 0000000..b002496 --- /dev/null +++ b/termux/colors.properties @@ -0,0 +1,21 @@ +# https://github.com/altercation/solarized/blob/master/xresources/solarized +background=#002b36 +foreground=#839496 +cursor=#93a1a1 + +color0=#073642 +color1=#dc322f +color2=#859900 +color3=#b58900 +color4=#268bd2 +color5=#d33682 +color6=#2aa198 +color7=#eee8d5 +color9=#cb4b16 +color8=#002b36 +color10=#586e75 +color11=#657b83 +color12=#839496 +color13=#6c71c4 +color14=#93a1a1 +color15=#fdf6e3 diff --git a/termux/font.ttf b/termux/font.ttf new file mode 100644 index 0000000..c9ce6a0 Binary files /dev/null and b/termux/font.ttf differ diff --git a/termux_init.sh b/termux/setup.sh similarity index 51% rename from termux_init.sh rename to termux/setup.sh index f96f93c..6bfbb16 100644 --- a/termux_init.sh +++ b/termux/setup.sh @@ -1,16 +1,22 @@ #!/data/data/com.termux/files/usr/bin/bash +echo -e "Installing dependencies ..." # https://github.com/4679/oh-my-termux pkg install -y libcurl wget curl openssh vim git zsh unrar unzip less pkg install -y tsu neofetch -clear +echo -e "Successfully Installed" if [ -d "$HOME/.termux" ]; then - mv $HOME/.termux $HOME/.termux.bak + mv $HOME/.termux $HOME/.termux.bak fi -curl -fsLo $HOME/.termux/colors.properties --create-dirs https://cdn.rawgit.com/4679/oh-my-termux/master/.termux/colors.properties -curl -fsLo $HOME/.termux/font.ttf --create-dirs https://cdn.rawgit.com/4679/oh-my-termux/master/.termux/font.ttf +if [ ! -d $HOME/.termux ]; then + mkdir $HOME/.termux +fi + +curl -fsLo $HOME/.termux/colors.properties --create-dirs https://github.com/einverne/dotfiles/raw/master/termux/colors.properties +curl -fsLo $HOME/.termux/termux.properties --create-dirs https://github.com/einverne/dotfiles/raw/master/termux/termux.properties +curl -fsLo $HOME/.termux/font.ttf --create-dirs https://github.com/einverne/dotfiles/raw/master/termux/font.ttf git clone git://github.com/robbyrussell/oh-my-zsh.git $HOME/.oh-my-zsh --depth 1 cp $HOME/.oh-my-zsh/templates/zshrc.zsh-template $HOME/.zshrc @@ -18,7 +24,8 @@ sed -i 's/ZSH_THEME="robbyrussell"/ZSH_THEME="agnoster"/' $HOME/.zshrc chsh -s zsh termux-setup-storage +termux-reload-settings -echo "Done! Please restart Termux." +echo "Done! " exit