项目作者: abdoulayeYATERA

项目描述 :
Bash Navigator is a tool to jump quickly in your bash navigation history
高级语言: Shell
项目地址: git://github.com/abdoulayeYATERA/bash_navigator.git
创建时间: 2018-05-23T20:55:37Z
项目社区:https://github.com/abdoulayeYATERA/bash_navigator

开源协议:MIT License

下载


bash_navigator is a tool to jump quickly in your bash navigation history

preview_image

  1. NAME
  2. bash_navigator is a tool to jump quickly in your bash navigation history
  3. IMPORTANT! Each shell instance has its own navigation history by default.
  4. ARGUMENTS
  5. -s (--single-nav-hist) : share the same navigation history beetween all your shell instances
  6. SYNOPSIS
  7. bb [delta]
  8. bbb
  9. bf [delta]
  10. bff
  11. bj [jump_index]
  12. bh
  13. bhelp
  14. AVAILABILITY
  15. bash, zsh
  16. DESCRIPTION
  17. IMPORTANT! Each shell instance has its own navigation history by default.
  18. bb bash back, move back
  19. bbb bash first, move back to first path
  20. bf bash forward, move forward
  21. bff bash last, move forward to last path
  22. bj bash jump, move specific index path
  23. bh bash history, show navigation paths history and indexes
  24. bhelp bash help, show help
  25. EXAMPLES
  26. bhelp show bash navigator help page
  27. bh show navigation history
  28. bj navigation history jump dialog (needs dialog)
  29. bj 78 go to the 78th path in navigation history
  30. bb go back in navigation history
  31. bb 4 go back 4 times in navigation history
  32. bbb go to first path in navigation history
  33. bf go forward in navigation history
  34. bf 6 go forward 6 times in navigation history
  35. bff go to last path in navigation history
  36. NOTES
  37. Installation:
  38. Put something like this in your $HOME/.bashrc or $HOME/.zshrc:
  39. source /path/to/bash_navigator.sh
  40. If you prefer to share the same navigation history beetween all your shell instances:
  41. source /path/to/bash_navigator.sh -s
  42. Restart your shell (zsh/bash), cd around to build up the db.
  43. To verify if the db is building up run the bash navigator history command:
  44. bh
  45. NOW ENJOY, MOVE FASTER!!!
  46. Configuration:
  47. IMPORTANT! These settings should go in .bashrc/.zshrc BEFORE the above source command.
  48. Set $_BASH_NAV_HIST_DB_FOLDER change the navigation database folder (default ~/.cache/bash_navigator).
  49. Set $_BASH_NAV_HIST_DB_MAX_SIZE change the number of paths to save in the navigation history (default 100).
  50. Set $_BASH_NAVIGATOR_BACK change bash back command (default bb)
  51. Set $_BASH_NAVIGATOR_FORWARD change bash forward command (default bf)
  52. Set $_BASH_NAVIGATOR_SHOW_HISTORY change bash history command (default bh)
  53. Set $_BASH_NAVIGATOR_FORWARD change bash forward command (default bf)
  54. Set $_BASH_NAVIGATOR_JUMP change bash jump command (default bj)
  55. Set $_BASH_NAVIGATOR_FORWARD change bash forward command (default bf)
  56. Set $_BASH_NAVIGATOR_JUMP_TO_FIRST change bash jump to first command (default bbb)
  57. Set $_BASH_NAVIGATOR_JUMP_TO_LAST change bash jump to last command (default bff)
  58. Configuration example:
  59. _BASH_NAV_HIST_DB_FOLDER="~/.cache/bash_navigator"
  60. _BASH_NAV_HIST_DB_MAX_SIZE=20
  61. source /path/to/bash_navigator.sh -s
  62. PROJECT
  63. https://github.com/abdoulayeYATERA/bash_navigator