denysdovhan / dotfiles

My lovely dots ~/.💖
403 stars 61 forks source link

git branch and git tag commands output is empty #22

Closed varya closed 4 years ago

varya commented 4 years ago

The problem is possible around here

 42 # Default pager
 43 export PAGER='less'
 44
 45 # less options
 46 less_opts=(
 47   # Quit if entire file fits on first screen.
 48   --quit-if-one-screen
 49   # Ignore case in searches that do not contain uppercase.
 50   --ignore-case
 51   # Allow ANSI colour escapes, but no other escapes.
 52   --RAW-CONTROL-CHARS
 53   # Quiet the terminal bell. (when trying to scroll past the end of the buffer)
 54   --quiet
 55   # Do not complain when we are on a dumb terminal.
 56   --dumb
 57 )
 58 export LESS="${less_opts[*]}"

Starts working if I remove these lines.

varya commented 4 years ago

I offered my fix here. But maybe the is better way, I don't know much about less options.

varya commented 4 years ago

https://github.com/denysdovhan/dotfiles/pull/23