Changeset 4437 in niluje


Ignore:
Timestamp:
Aug 28, 2008, 8:12:28 PM (12 years ago)
Author:
NiLuJe
Message:

Nice default to -n 10, and since I'm too lazy to hack more around phil's prompt
preexec to show the correct cmd name, and not just 'nice' when using nice -n, just
use nice, and adapat the preexec for that to show the real command name in screen's status bar ;)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Configs/trunk/DotFiles/dot.zshrc

    r4428 r4437  
    1414#       Christian Schneider <strcat@gmx.net> (Cf. http://www.strcat.de/dotfiles/#zsh)
    1515#       And the ZSH Wiki <http://www.zshwiki.org>
    16 #       Prompt from http://www.aperiodic.net/phil/prompt/
     16#       Prompt from http://aperiodic.net/phil/prompt/
    1717#
    1818#       $Id$
     
    109109
    110110# Paludis
    111 a pal="screen -mS pal nice -n 10 paludis"
    112 a prec="screen -mS pal nice -n 10 reconcilio"
     111a pal="screen -mS pal nice paludis"
     112a prec="screen -mS pal nice reconcilio"
    113113a inq="inquisitio"
    114114
     
    11881188{
    11891189        if [[ "$TERM" == "screen" ]]; then
    1190                 local CMD=${1[(wr)^(<*|*=*|sudo|exec|-*)]}
     1190                local CMD=${1[(wr)^(<*|*=*|sudo|exec|nice|-*)]}
    11911191                echo -n "\ek$CMD\e\\"
    11921192        fi
Note: See TracChangeset for help on using the changeset viewer.