Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed the displaying of 'ss' to limit the output

  • Loading branch information...
commit f94406ef048fff958c54ad6eba2603bbef3773b2 1 parent bf5edc9
Derek Wyatt authored
2  zsh_custom/plugins/regex-dirstack/regex-dirstack.plugin.zsh
View
@@ -14,7 +14,7 @@ function ss
{
local c=1
local collimit=$((${COLUMNS-80}-10))
- dirs -p | tail -n+2 | \
+ dirs -p | tail -n+2 | head -${SS_DISPLAY_LIMIT-1000} | \
while read f
do
echo "$c) "$(limitStringToWidthByMidpoint $f $collimit)
1  zshrc
View
@@ -22,6 +22,7 @@ else
export MY_SHELL_LEVEL=$(($MY_SHELL_LEVEL+1))
fi
+export SS_DISPLAY_LIMIT=25
export ZSH_CUSTOM=~/.dotfiles/zsh_custom
plugins=(git regex-dirstack vim-interaction)
source $ZSH/oh-my-zsh.sh
Please sign in to comment.
Something went wrong with that request. Please try again.