.bash_functions 556 B

1234567891011121314151617181920212223242526
  1. # ~/.bash_functions
  2. _bash_history_sync() {
  3. builtin history -a
  4. builtin history -c
  5. builtin history -r
  6. }
  7. history() {
  8. _bash_history_sync
  9. builtin history "$@"
  10. }
  11. man() {
  12. env MANWIDTH=95 \
  13. LESS_TERMCAP_mb="$(tput bold; tput setaf 1)" \
  14. LESS_TERMCAP_md="$(tput bold; tput setaf 32)" \
  15. LESS_TERMCAP_me="$(tput sgr0)" \
  16. LESS_TERMCAP_se="$(tput sgr0)" \
  17. LESS_TERMCAP_so="$(tput bold; tput setaf 220)" \
  18. LESS_TERMCAP_ue="$(tput sgr0)" \
  19. LESS_TERMCAP_us="$(tput smul; tput bold; tput setaf 37)" \
  20. man "$@"
  21. }