Переглянути джерело

update set terminal title prefs

pull/1/head
10sr 12 роки тому
джерело
коміт
71416e063a
2 змінених файлів з 4 додано та 4 видалено
  1. +3
    -3
      bashrc
  2. +1
    -1
      emacs.el

+ 3
- 3
bashrc Переглянути файл

@@ -461,15 +461,15 @@ __my_prompt_function(){ # used by PS1
__my_set_title(){
title="$(echo $@)"
case $TERM in
(rxvt*|xterm*|aterm)
(rxvt*|xterm*|aterm|screen*)
test -t 1 &&
test -n "$DISPLAY" &&
test -z "$EMACS" &&
echo -n -e "\033]0;${1}\007"
echo -n -e "\033]0;${title}\007"
;;
esac
}
# export PROMPT_COMMAND="__my_set_title \${USER}@\${HOSTNAME}\ \${PWD};${PROMPT_COMMAND}"
export PROMPT_COMMAND="__my_set_title \${USER}@\${HOSTNAME}\ \${PWD};"

# copied from https://wiki.archlinux.org/index.php/X_resources
invader(){


+ 1
- 1
emacs.el Переглянути файл

@@ -79,7 +79,7 @@ Return nil if library unfound and failed to download, otherwise the path where t
"] "
'(:eval (symbol-name last-command))))

(setq set-terminal-title-regexp "^\\(xterm\\|screen\\)")
(setq set-terminal-title-regexp "^\\(rxvt\\|xterm\\|aterm$\\|screen\\)")
(defun set-terminal-title (&rest args)
""
(interactive "sString to set as title: ")


Завантаження…
Відмінити
Зберегти