Browse Source

Add .bash_functions file

Andrea Miglietta 7 years ago
parent
commit
f843726514
1 changed files with 13 additions and 0 deletions
  1. 13 0
      .bash_functions

+ 13 - 0
.bash_functions

@@ -0,0 +1,13 @@
+# ~/.bash_functions
+
+_bash_history_sync() {
+    builtin history -a
+    builtin history -c
+    builtin history -r
+}
+
+history() {
+    _bash_history_sync
+    builtin history "$@"
+}
+