about summary refs log tree commit diff
path: root/bash/.bashrc
diff options
context:
space:
mode:
authorBen Harris <ben@tilde.team>2018-09-24 15:33:25 +0000
committerBen Harris <ben@tilde.team>2018-09-24 15:33:25 +0000
commit0355ddd3cd7e04aa47ec03d6fbef4fd9fde330ad (patch)
treeb445f788cd311b00de4820a8782a280cc8598d0c /bash/.bashrc
parent116f77d05836312aad10ee761e0cdef88b59ff9f (diff)
fix up some bash stuffs
Diffstat (limited to 'bash/.bashrc')
-rwxr-xr-xbash/.bashrc9
1 files changed, 8 insertions, 1 deletions
diff --git a/bash/.bashrc b/bash/.bashrc
index c63cba3..87807c5 100755
--- a/bash/.bashrc
+++ b/bash/.bashrc
@@ -132,10 +132,17 @@ export PS1="\[$(tput bold)\]\[$(tput setaf 2)\]\u\[$(tput setaf 6)\]@\[$(tput se
 brc() { vim ~/.bashrc; }
 tag() { shuf -n 1 ~/taglines.txt; }
 
+g() {
+    if (( $# == 0 )); then
+        git status
+    else
+        git "$@"
+    fi
+}
+
 export NVM_DIR="$HOME/.nvm"
 [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  # This loads nvm
 [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"  # This loads nvm bash_completion
 
-
 [ -f ~/.fzf.bash ] && source ~/.fzf.bash