diff options
author | Vikas Kushwaha <dev@vikas.rocks> | 2025-01-24 10:35:59 +0530 |
---|---|---|
committer | Vikas Kushwaha <dev@vikas.rocks> | 2025-01-24 10:35:59 +0530 |
commit | 18507fd21b7a7709133d8f3049c683e1abffcda2 (patch) | |
tree | d43bc141b2e588300e639bdb4f004ad6945e6081 /.local/bin/preview | |
parent | e02304f014645a01ef6cdd40276997dea58504d9 (diff) |
jupyter update
Diffstat (limited to '.local/bin/preview')
-rwxr-xr-x | .local/bin/preview | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/.local/bin/preview b/.local/bin/preview index 2968843..b71d0f0 100755 --- a/.local/bin/preview +++ b/.local/bin/preview @@ -2,9 +2,9 @@ if [ -d "$1" ]; then if [ -x /bin/eza ] || [ -x /usr/bin/eza ]; then - eza -alhF --group-directories-first --color=always --icons -- "$1" + eza -alhF --group-directories-first --color=always --icons=always -- "$1" else - ls -lhAF --group-directories-first --color -- "$1" + ls -lhAF --group-directories-first --color=always -- "$1" fi readme="$(find "$1" -maxdepth 1 -name "README.*" | head -1)" [ -n "$readme" ] && preview "$readme" @@ -14,7 +14,7 @@ fi alias highlight='highlight --out-format=ansi' case "$1" in - '') echo "preview: file name required" >&2; exit 1 ;; + '') echo "USAGE: preview <FILE>" >&2; exit 1 ;; *.html) w3m -dump "$1" ;; *.md) glow -s dark --width="${FZF_PREVIEW_COLUMNS:-"$(tput cols)"}" "$1" ;; # *.vim) highlight --syntax=vim --replace-tabs=2 -- "$1" ;; |