diff options
author | Vasil Zlatanov <v@skozl.com> | 2016-10-13 18:59:02 +0100 |
---|---|---|
committer | Vasil Zlatanov <v@skozl.com> | 2016-10-13 18:59:02 +0100 |
commit | c822d0733e2ad3dad3e104ede70e65802b4b1648 (patch) | |
tree | 9b2c3c6e5d29dc22ef9067b2af02ed5cfb6e0463 | |
parent | ce2221c2535c9d12b5be2be4e6534aa08ba7dbc7 (diff) | |
download | dotfiles-c822d0733e2ad3dad3e104ede70e65802b4b1648.tar.gz dotfiles-c822d0733e2ad3dad3e104ede70e65802b4b1648.tar.bz2 dotfiles-c822d0733e2ad3dad3e104ede70e65802b4b1648.zip |
Add title of running command
-rw-r--r-- | Shell/zshrc | 30 |
1 files changed, 26 insertions, 4 deletions
diff --git a/Shell/zshrc b/Shell/zshrc index 9b0e8a6..36ee6ac 100644 --- a/Shell/zshrc +++ b/Shell/zshrc @@ -23,7 +23,7 @@ source ~/.bash_aliases export GPGKEY="895134C5" export PATH="$HOME/bin:$PATH" -export EDITOR="vim" +export EDITOR="nvim" export BROWSER="~/.ratposon/firesend" export LD_LIBRARY_PATH=/usr/local/lib export wiki_browser='firefox' @@ -55,7 +55,29 @@ if [ -x /usr/bin/dircolors ]; then fi -#fortune -s | cowsay -f $(ls /usr/share/cows/ | shuf -n1) -#fortune -s -#~/archey +~/bin/sysinfo +case $TERM in + (*xterm* | *rxvt*) + + # Write some info to terminal title. + # This is seen when the shell prompts for input. + function precmd { +if pgrep "panel" > /dev/null +then + print -Pn "\e]0;%(1j,%j job%(2j|s|); ,)%1~\a" + ~/dotfiles/Panel/lemonbar/windows +fi + } + # Write command and args to terminal title. + # This is seen while the shell waits for a command to complete. + function preexec { +if pgrep "panel" > /dev/null +then + printf "\033]0;%s\a" "$1" + ~/dotfiles/Panel/lemonbar/windows +fi + } + + ;; +esac |