From: Maxim Tyurin <mrkooll@bungarus.info>
To: community@altlinux.ru
Subject: Re: [Comm] zsh: sessions
Date: Tue, 19 Jul 2005 15:04:55 +0300
Message-ID: <m31x5vrogo.fsf@mrkooll.tdr.pibhe.com> (raw)
In-Reply-To: <20050718132435.GG24908@osdn.org.ua> (Michael Shigorin's message of "Mon, 18 Jul 2005 16:24:35 +0300")
Michael Shigorin writes:
\scip
> А мелкие сиюминутные задачки вроде dict, whois, ping, wget
> -- жмакнул C-A-a, получил моментально aterm, сделал что надо
> и закрыл его.
>
> При этом в ~/.zshrc наблюдается:
>
> export PROMPT="${HOST/\.*/}:%~> "
Маловато будет :)
# Устанавливаем приглашение
LOAD=$(uptime|sed -e "s/.*: \([^,]*\).*/\1/" -e "s/ //g")
PROMPT="%n@%m %3~ %(!.#.>) "
RPROMPT="(%M)[%*]%?|$LOAD"
#export PS1="%n@%m:%~> "
# Если работаем под X меняем заголовки терминала
case $TERM in
xterm*|rxvt*|aterm*)
precmd () {
print -Pn "\e]0;TERM %n@%m: %~\t$1\a"
}
preexec () {
print -Pn "\e]0;TERM <%n@%m> $1\a"
}
;;
esac
--
With Best Regards, Maxim Tyurin aka Bungarus
JID: MrKooll@jabber.pibhe.com
next prev parent reply other threads:[~2005-07-19 12:04 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-18 12:04 [Comm] zsh: copy command to clipboard Vitaly Ostanin
2005-07-18 12:20 ` Alexey I. Froloff
2005-07-18 12:23 ` [Comm] " Michael Shigorin
2005-07-18 12:46 ` Vitaly Ostanin
2005-07-18 12:50 ` Eugene Ostapets
2005-07-18 12:55 ` Vitaly Ostanin
2005-07-18 12:58 ` Alexey I. Froloff
2005-07-18 13:01 ` Michael Holzman
2005-07-18 13:09 ` Michael Shigorin
2005-07-18 13:18 ` Vitaly Ostanin
2005-07-18 13:01 ` Nick S. Grechukh
2005-07-18 13:10 ` Vitaly Ostanin
2005-07-18 13:24 ` [Comm] zsh: sessions Michael Shigorin
2005-07-19 12:04 ` Maxim Tyurin [this message]
2005-07-19 13:14 ` [Comm] " Michael Shigorin
2005-07-19 13:20 ` Maxim Tyurin
2005-07-19 14:30 ` [Comm] [JT] " Michael Shigorin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m31x5vrogo.fsf@mrkooll.tdr.pibhe.com \
--to=mrkooll@bungarus.info \
--cc=community@altlinux.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git