[FIX] Only source terminal prompt file if there
I don't want to see an error message when ssh-ing to a computer which doesn't have this file because `termite` isn't installed.
This commit is contained in:
parent
d79a86e8bd
commit
cbcddccb50
|
@ -6,9 +6,10 @@
|
||||||
[[ $- != *i* ]] && return
|
[[ $- != *i* ]] && return
|
||||||
|
|
||||||
# Export our directory to Termite for opening new terminals
|
# Export our directory to Termite for opening new terminals
|
||||||
if [[ "$TERM" == xterm-termite ]] || [[ "$TERM" == xterm ]]; then
|
if { [[ "$TERM" == xterm-termite ]] || [[ "$TERM" == xterm ]]; } &&
|
||||||
. /etc/profile.d/vte.sh
|
[ -r /etc/profile.d/vte.sh ]; then
|
||||||
__vte_prompt_command
|
. /etc/profile.d/vte.sh
|
||||||
|
__vte_prompt_command
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Make colorcoding available for everyone
|
# Make colorcoding available for everyone
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
# Export our directory to Termite for opening new terminals
|
# Export our directory to Termite for opening new terminals
|
||||||
if [[ "$TERM" == xterm-termite ]] || [[ "$TERM" == xterm ]]; then
|
if { [[ "$TERM" == xterm-termite ]] || [[ "$TERM" == xterm ]]; } &&
|
||||||
. /etc/profile.d/vte.sh
|
[ -r /etc/profile.d/vte.sh ]; then
|
||||||
__vte_osc7
|
. /etc/profile.d/vte.sh
|
||||||
precmd_functions+=(__vte_prompt_command) # FIXME: why isn't it set above ?
|
__vte_osc7
|
||||||
|
precmd_functions+=(__vte_prompt_command) # FIXME: why isn't it set above ?
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# History configuration
|
# History configuration
|
||||||
|
|
Loading…
Reference in a new issue