Merge branch 'master' of bitbucket.org:/ambrevar/home-config
commit
1101b94581
|
@ -92,8 +92,10 @@ case "$mimetype" in
|
|||
|
||||
# Ascii-previews of images:
|
||||
image/*)
|
||||
img2txt --gamma=0.6 --width="$width" "$path" && exit 4 || exit 1;;
|
||||
## Alternative light preview.
|
||||
# img2txt --gamma=0.6 --width="$width" "$path" && exit 4 || exit 1;;
|
||||
exiftool "$path" && exit 5
|
||||
# # Use sed to remove spaces so the output fits into the narrow window
|
||||
try mediainfo "$path" && { dump | trim | sed 's/ \+:/: /;'; exit 5; } || exit 1;;
|
||||
# if have mediainfo; then
|
||||
# mediainfo "$path" | sed 's/ \+:/: /;'
|
||||
# success && exit 5
|
||||
|
|
|
@ -458,7 +458,7 @@ properly escaped with double-quotes in case it has spaces."
|
|||
(defun python-my-compile ()
|
||||
"Use compile to run python programs."
|
||||
(interactive)
|
||||
(compile (concat python-compiler " " buffer-file-name))
|
||||
(compile (concat python-compiler " \"" buffer-file-name "\""))
|
||||
)
|
||||
(setq compilation-scroll-output t)
|
||||
(local-set-key "\C-c\C-c" 'python-my-compile)
|
||||
|
|
|
@ -33,7 +33,7 @@ ICIiIC1uYyAiJEAiCmVsc2UKICAgIGVtYWNzY2xpZW50IC1hICIiIC10ICIkQCIKZmkK
|
|||
' | base64 -d > "'"'"$EMFILE"'"'" && chmod 755 "'"'"$EMFILE"'"'""
|
||||
|
||||
sudo sh -c "umask 022 && echo 'IyEvYmluL3NoCmVtYWNzY2xpZW50IC1hICIiIC10ICIkQCIK
|
||||
' | base64 -d > "'"'"$EMCFILE"'"'" && chmod 755 "'"'"$EMFILE"'"'""
|
||||
' | base64 -d > "'"'"$EMCFILE"'"'" && chmod 755 "'"'"$EMCFILE"'"'""
|
||||
|
||||
fi
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue