Browse Source

Update termux

pull/4/head
Ein Verne 5 years ago
parent
commit
18c6852151
No known key found for this signature in database
GPG Key ID: F80B65F734D9DD7D
  1. 2
      .zshrc
  2. 12
      termux/README.md
  3. 21
      termux/colors.properties
  4. BIN
      termux/font.ttf
  5. 15
      termux/setup.sh

2
.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"

12
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
- <https://github.com/adi1090x/termux-omz>
- <https://github.com/4679/oh-my-termux>

21
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

BIN
termux/font.ttf

Binary file not shown.

15
termux_init.sh → 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
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
Loading…
Cancel
Save