[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Git][ftp-team/dak][master] Add a command number and timestamp to daks prompt



Title: GitLab

Joerg Jaspert pushed to branch master at Debian FTP Team / dak

Commits:

  • 6a1f4f51
    by Joerg Jaspert at 2025-08-08T22:42:10+02:00
    Add a command number and timestamp to daks prompt
    

1 changed file:

Changes:

  • config/homedir/.bashrc
    ... ... @@ -16,7 +16,7 @@ shopt -s checkwinsize
    16 16
     [ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
    
    17 17
     
    
    18 18
     ## A little nice prompt.
    
    19
    -PS1='`_ret=$?; if test $_ret -ne 0; then echo "\[\033[01;31m\]$_ret "; set ?=$_ret; unset _ret; fi`\[\033[01;33m\][`git branch 2>/dev/null|cut -f2 -d\* -s` ] \[\033[01;32m\]\u@\[\033[00;36m\]\h\[\033[01m\]:\[\033[00;37m\]\w\[\033[00m\]\$ '
    
    19
    +PS1='[\#|\t]`_ret=$?; if test $_ret -ne 0; then echo "\[\033[01;31m\]$_ret "; set ?=$_ret; unset _ret; fi`\[\033[01;33m\][`git branch 2>/dev/null|cut -f2 -d\* -s` ] \[\033[01;32m\]\u@\[\033[00;36m\]\h\[\033[01m\]:\[\033[00;37m\]\w\[\033[00m\]\$ '
    
    20 20
     
    
    21 21
     # If this is an xterm set the title to user@host:dir
    
    22 22
     case "$TERM" in
    


  • Reply to: