updated
This commit is contained in:
parent
1f64c84768
commit
accf0dfb3a
|
@ -29,6 +29,7 @@ case "$(printf "%s\n" "$(readlink -f "$1")" | awk '{print tolower($0)}')" in
|
|||
*.tar) tar tf "$1" ;;
|
||||
*.zip|*.jar|*.war|*.ear|*.oxt) unzip -l "$1" ;;
|
||||
*.rar) unrar l "$1" ;;
|
||||
*.md) glow -s dark "$1" ;;
|
||||
*.7z) 7z l "$1" ;;
|
||||
*.[1-8]) man "$1" | col -b ;;
|
||||
*.o) nm "$1";;
|
||||
|
@ -37,6 +38,7 @@ case "$(printf "%s\n" "$(readlink -f "$1")" | awk '{print tolower($0)}')" in
|
|||
*.odt|*.ods|*.odp|*.sxw) odt2txt "$1" ;;
|
||||
*.doc) catdoc "$1" ;;
|
||||
*.docx) docx2txt "$1" - ;;
|
||||
*.xml|*.html) w3m -dump "$1";;
|
||||
*.xls|*.xlsx)
|
||||
ssconvert --export-type=Gnumeric_stf:stf_csv "$1" "fd://1" | batorcat --language=csv
|
||||
;;
|
||||
|
@ -53,14 +55,24 @@ case "$(printf "%s\n" "$(readlink -f "$1")" | awk '{print tolower($0)}')" in
|
|||
epub-thumbnailer "$1" "$CACHE" 1024
|
||||
image "$CACHE" "$2" "$3" "$4" "$5"
|
||||
;;
|
||||
*.cbz|*.cbr|*.cbt)
|
||||
[ ! -f "$CACHE" ] && \
|
||||
comicthumb "$1" "$CACHE" 1024
|
||||
image "$CACHE" "$2" "$3" "$4" "$5"
|
||||
;;
|
||||
*.avi|*.mp4|*.wmv|*.dat|*.3gp|*.ogv|*.mkv|*.mpg|*.mpeg|*.vob|*.fl[icv]|*.m2v|*.mov|*.webm|*.ts|*.mts|*.m4v|*.r[am]|*.qt|*.divx)
|
||||
[ ! -f "${CACHE}.jpg" ] && \
|
||||
ffmpegthumbnailer -i "$1" -o "${CACHE}.jpg" -s 0 -q 5
|
||||
image "${CACHE}.jpg" "$2" "$3" "$4" "$5"
|
||||
;;
|
||||
*.bmp|*.jpg|*.jpeg|*.png|*.xpm|*.webp|*.gif)
|
||||
*.bmp|*.jpg|*.jpeg|*.png|*.xpm|*.webp|*.gif|*.jfif)
|
||||
image "$1" "$2" "$3" "$4" "$5"
|
||||
;;
|
||||
*.svg)
|
||||
[ ! -f "${CACHE}.jpg" ] && \
|
||||
convert "$1" "${CACHE}.jpg"
|
||||
image "${CACHE}.jpg" "$2" "$3" "$4" "$5"
|
||||
;;
|
||||
*.ino)
|
||||
batorcat --language=cpp "$1"
|
||||
;;
|
||||
|
|
|
@ -1,8 +1,14 @@
|
|||
set ratios 1:2:3
|
||||
set previewer ~/.config/lf/preview
|
||||
set cleaner ~/.config/lf/cleaner
|
||||
set drawbox true
|
||||
set icons true
|
||||
|
||||
cmd z %{{
|
||||
result="$(zoxide query --exclude $PWD $@)"
|
||||
lf -remote "send $id cd $result"
|
||||
}}
|
||||
|
||||
cmd git_branch ${{
|
||||
git branch | fzf | xargs git checkout
|
||||
pwd_shell=$(pwd)
|
||||
|
@ -14,4 +20,7 @@ map gp ${{clear; git pull --rebase || true; echo "press ENTER"; read ENTER}}
|
|||
map gs ${{clear; git status; echo "press ENTER"; read ENTER}}
|
||||
map gl ${{clear; git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit}}
|
||||
|
||||
map D :delete
|
||||
cmd trash %trash-put $fx
|
||||
|
||||
map D :trash
|
||||
|
||||
|
|
|
@ -13,7 +13,6 @@ alias speedometer="speedometer -l -r wlo1 -t wlo1 -m $(( 1024 * 1024 * 3 / 2 ))
|
|||
alias tty-clock="tty-clock -scBxbn"
|
||||
alias auth="eval $(ssh-agent) ssh-add $HOME/.ssh/ubuntu@vector"
|
||||
alias vector="screen -S vector mosh ubuntu@arrayinamatrix.xyz --ssh='ssh -p 6969'"
|
||||
alias share='f() { curl --progress-bar --upload-file "$1" https://share.arrayinamatrix.xyz/ | tee /dev/null; echo };f'
|
||||
alias cat="bat --paging=never"
|
||||
alias ip="ip -c"
|
||||
alias open="xdg-open"
|
||||
|
|
|
@ -43,3 +43,8 @@ extract() {
|
|||
echo "'$1' is mot a valid file."
|
||||
fi
|
||||
}
|
||||
|
||||
share() {
|
||||
curl --progress-bar --upload-file "$1" https://share.arrayinamatrix.xyz/ | tee /dev/null; echo
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue