summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.bashrc10
1 files changed, 8 insertions, 2 deletions
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