Merge remote-tracking branch 'krobelus/initialize-shell-vars' into master
This commit is contained in:
commit
c98d6c3062
|
@ -12,6 +12,7 @@ hook global BufOpenFile .* %{ evaluate-commands %sh{
|
||||||
text/*) filetype="${mime#text/}" ;;
|
text/*) filetype="${mime#text/}" ;;
|
||||||
application/x-*) filetype="${mime#application/x-}" ;;
|
application/x-*) filetype="${mime#application/x-}" ;;
|
||||||
application/*) filetype="${mime#application/}" ;;
|
application/*) filetype="${mime#application/}" ;;
|
||||||
|
*) exit ;;
|
||||||
esac
|
esac
|
||||||
if [ -n "${filetype}" ]; then
|
if [ -n "${filetype}" ]; then
|
||||||
printf "set-option buffer filetype '%s'\n" "${filetype}"
|
printf "set-option buffer filetype '%s'\n" "${filetype}"
|
||||||
|
|
|
@ -78,6 +78,7 @@ define-command -params 1.. \
|
||||||
diff) filetype=diff ;;
|
diff) filetype=diff ;;
|
||||||
log|show) filetype=git-log ;;
|
log|show) filetype=git-log ;;
|
||||||
status) filetype=git-status ;;
|
status) filetype=git-status ;;
|
||||||
|
*) return 1 ;;
|
||||||
esac
|
esac
|
||||||
output=$(mktemp -d "${TMPDIR:-/tmp}"/kak-git.XXXXXXXX)/fifo
|
output=$(mktemp -d "${TMPDIR:-/tmp}"/kak-git.XXXXXXXX)/fifo
|
||||||
mkfifo ${output}
|
mkfifo ${output}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user