Skip to content

Latest commit

 

History

History
63 lines (53 loc) · 1.02 KB

test_history.md

File metadata and controls

63 lines (53 loc) · 1.02 KB

history

Init

% source ./tests/__init__.zsh
% t_setup
%

Test plugin is not initialized

% zstyle -t ':zephyr:plugin:history' loaded || echo "not loaded"
not loaded
% test "$SAVEHIST" -le 1000  #=> --exit 0
% test "$HISTSIZE" -le 2000  #=> --exit 0
% set -o | grep 'on$' | awk '{print $1}' | sort
nohashdirs
norcs
%

Initialize plugin

% source $ZEPHYR_HOME/plugins/history/history.plugin.zsh; setopt clobber
%

Test plugin is initialized

% zstyle -t ':zephyr:plugin:history' loaded || echo "not loaded"
% echo "$SAVEHIST"
100000
% echo "$HISTSIZE"
20000
% set -o | grep 'on$' | sort
extendedglob          on
extendedhistory       on
histexpiredupsfirst   on
histfindnodups        on
histignorealldups     on
histignoredups        on
histignorespace       on
histreduceblanks      on
histsavenodups        on
histverify            on
incappendhistory      on
interactivecomments   on
nohashdirs            on
nohistbeep            on
norcs                 on
%

Teardown

% t_teardown
%