Commit Graph

10 Commits

Author SHA1 Message Date
Jacob Tomaw 1ba0af650a Use safer append to hook function arrays (#8406)
Use add-zsh-hook to add functions to hooks. That way they won't be added again
when doing `source ~/.zshrc` multiple times.

Co-authored-by: Marc Cornellà <marc.cornella@live.com>
2019-11-19 18:47:12 +01:00
Marc Cornellà d02d008579
Add directory hierarchy navigation to dirhistory (#6756)
* New Feature:
  Navigate directory hierarchy using ALT-UP and ALT-DOWN. (mac keybindings not yet implemented)
  ALT-UP moves to higher hierarchy (cd ..)
  ALT-DOWN moves into the first directory found in alphabetical order
2018-05-13 01:57:42 +02:00
Giuseppe Landolfi 8ebf2a6785 Fine-tune dirhistory plugin mappings for Mac (#6580)
See https://github.com/robbyrussell/oh-my-zsh/pull/6533#issuecomment-360878060
2018-05-13 01:53:45 +02:00
Francisco Zuviría 18f7ca577a Adhere to coding style outlined in wiki 2018-05-08 12:55:59 -03:00
Francisco Zuviría 7bb7ce62d3 On branch fzuviria.plugin.dirhistory.new-feature.navigate-history
Changes to be committed:
	modified:   dirhistory/dirhistory.plugin.zsh

New Feature:
  Navigate directory hierarchy using ALT-UP and ALT-DOWN. (mac keybindings not yet implemented)
  ALT-UP moves to higher hierarchy (cd ..)
  ALT-DOWN moves into the first directory found in alphabetical order
2018-04-22 22:34:26 -03:00
Giuseppe Landolfi 215e43aa8a Add support for Mac to dirhistory plugin (#6533)
Add shortcuts for mac keyboards as an alternative to alt+left
abd alt+right: mac users can now use opt+left and opt+right.
2018-01-22 19:18:45 -08:00
xiao.fan cddfc3b038 style fixes 2015-08-04 15:10:18 -07:00
xiao 084792b829 Don't clobber chpwd 2015-08-03 22:10:24 -07:00
Marc Cornellà 4310a15de5 Change all pwd calls for $PWD variable
This avoids spawning additional processes as $PWD **always** contains
the current working directory.
2014-11-06 18:33:56 +01:00
Jeff Williams c0b98cd6ac Added dirhistory plugin.
This plugin navigates directory history using ALT-LEFT and ALT-RIGHT.
2014-03-03 10:18:10 -05:00