diff options
author | Vikas Kushwaha <dev@vikas.rocks> | 2025-01-10 15:08:05 +0530 |
---|---|---|
committer | Vikas Kushwaha <dev@vikas.rocks> | 2025-01-10 15:08:05 +0530 |
commit | e02304f014645a01ef6cdd40276997dea58504d9 (patch) | |
tree | 49ac70d8b348fa138f681e2fe6fa8f92b512ec9e /.local/bin/open | |
parent | 776f17159bccd342bdc8ab9afdd035196f48d385 (diff) |
Cleaning up 'bin' folder.
Diffstat (limited to '.local/bin/open')
-rwxr-xr-x | .local/bin/open | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.local/bin/open b/.local/bin/open index a996105..9b83265 100755 --- a/.local/bin/open +++ b/.local/bin/open @@ -11,7 +11,7 @@ for file in "$@"; do *.html) ${BROWSER:-w3m} "$file" ;; *.pl.txt) fpl "$file" ;; *.txt|*.description) ${PAGER:-less} "$file" ;; - *.md) glow --pager "$file" ;; + *.md) glow --pager --width $(("$(tput cols)" - 5)) "$file" ;; *.css|*.json|*.ipynb|*.vim|*.lua|*.iso|*.zip) LESSOPEN="|preview %s" less -r "$file" ;; *.srt) fzf-subtitles -o "$file" ;; *.dig) setsid -f digital "$file" ;; |