From 1abd0acce843758cf2b248fbd3874623d68879a2 Mon Sep 17 00:00:00 2001 From: Marc Vertes Date: Sun, 16 Feb 2020 11:31:50 +0100 Subject: fix: set a base prefix for termux --- .bashrc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to '.bashrc') diff --git a/.bashrc b/.bashrc index a028766..6f6c8be 100644 --- a/.bashrc +++ b/.bashrc @@ -70,11 +70,17 @@ alias dya='YAEGI_AST_DOT=1 YAEGI_CFG_DOT=1 ./yaegi' ws() (cd ~/Wiki && git status --short) export -f ws +wsd() (cd ~/Wiki && git add . && git diff --cached) +export -f wsd + #PS1='[\u@\h \W]\$ ' +# Accomodate different base prefix on termux +[ -d "$HOME/../usr" ] && base=.. # fzf -. /usr/share/fzf/completion.bash -. /usr/share/fzf/key-bindings.bash +. $base/usr/share/fzf/completion.bash +. $base/usr/share/fzf/key-bindings.bash +unset base # Display git status in prompt . ~/.bash-powerline.sh -- cgit v1.2.3