Commit Graph
9 Commits
Author SHA1 Message Date
Jim Hesterandncanceill 97ab436f7f Fix path for colemak plugin 2014-05-28 11:22:35 +02:00
Jim Hester ac6f1a045c Update to latest per-directory-history 2013-03-13 13:07:32 -04:00
Jim Hester 0744acd663 Update to latest per-directory-history
See [https://github.com/jimhester/per-directory-history]
2013-02-28 10:28:08 -05:00
Jim Hester 9ba799111c Replace reset-prompt with push-line and accept-line
The in memory history is not updated until an accept line command, so you
have to push enter before it is correct, this commit replaces the reset-prompt
with an accept-line.  It also adds a push-line, to preserve the current editing
buffer
2012-11-16 10:50:41 -05:00
Jim Hester 4e513d72b9 Fixes for vi-mode terminal overwriting bugs
fixes #387 and https://github.com/robbyrussell/oh-my-zsh/pull/1321#issuecomment-9959540
and other problems of prompt overwriting when people did not realize that it
was vi mode causing the problem.  Hat tip to sorin ionescu, as I took this code
from prezto
2012-11-02 11:06:32 -04:00
Jim Hester cc831508d7 Use HISTFILE evironment variable directly rather than copying it
Use the HISTFILE environment variable in place of copying it to
_per_directory_history_global so that users can change the environment variable
after sourcing per-directory-history and have the global variable set correctly
2012-09-21 10:19:39 -04:00
Jim Hester aeadd7371b Colemak plugin
a plugin for useing the colemak[1] keyboard layout and vi-mode in zsh, rotates
  some keys around in vi command mode so that the physical hjkl keys are still
  used for movement, all the rotated keys are either in colemak's location or
  qwerty's location, so it is easy to pick up

  [1] www.colemak.com
2012-09-20 08:29:05 -04:00
Jim Hester baa187e4b9 Per directory history plugin
This is a implementation of per directory history for zsh, some
   implementations of which exist in bash[1,2].  It also implements
   a per-directory-history-toggle-history function to change from using the
   directory history to using the global history.  In both cases the history is
   always saved to both the global history and the directory history, so the
   toggle state will not effect the saved histories.  Being able to switch
   between global and directory histories on the fly is a novel feature as far
   as I am aware.

   [1]: http://www.compbiome.com/2010/07/bash-per-directory-bash-history.html
   [2]: http://dieter.plaetinck.be/per_directory_bash
2012-09-20 08:23:58 -04:00
Jim Hester b609aa0e6c Fix to restore bindings after switching to vi-mode
the vi-mode plugin destroys any bindings made before it is sourced due to the
'bindkey -v' call to switch to using vi-mode.  This patch saves the bindings
before invoking 'bindkey -v' then rebinds them afterwards, this fixes a number
of outstanding issues due to people using vi-mode and having things in oh-my-zsh
break due to the bindings being destroyed
2012-09-20 08:03:09 -04:00