Created
December 30, 2016 04:51
-
-
Save qntmpkts/109b7a5ccea0ffda8bb46fe1f62b77f5 to your computer and use it in GitHub Desktop.
.zshrc for termux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[[ -z $OS ]] && export OS=$(uname -a | awk '{print $(NF)}') | |
export ZSH=/data/data/com.termux/files/home/.oh-my-zsh | |
ZSH_THEME="robbyrussell" | |
plugins=(git ssh-agent) | |
source $ZSH/oh-my-zsh.sh | |
export SSH_KEY_PATH="~/.ssh/id_termux" | |
alias rezet="source ~/.zshrc" | |
if [[ $OS == "Android" ]]; then | |
# Termux provides termux-open-url in termux-tools | |
alias xdg-open="termux-open-url " | |
[[ -z $BROWSER ]] && export BROWSER=termux-open-url | |
if ! which $BROWSER &>/dev/null; then | |
export BROWSER= | |
echo "Warning: Please install termux-tools and reload zshrc:" >&2 | |
echo " apt install termux-tools && zshrc-reload" >&2 | |
fi | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment