mirror of
https://github.com/Llewellynvdm/starship.git
synced 2025-01-24 07:38:34 +00:00
d21400a478
* feat: add support for tcsh * add tcsh to install.sh install message * list tcsh in bug_report.rs and main.rs * quote starship path Co-authored-by: David Knaack <davidkna@users.noreply.github.com> * fix job count * add tcsh support to shell module * fix STARSHIP_START_TIME undefined error * preserve existing user precmd and postcmd, remove jobs support * remove unnecessary parentheses * minor script improvement * removes parens from install script message * Update docs/config/README.md Co-authored-by: Thomas O'Donnell <andytom@users.noreply.github.com> Co-authored-by: David Knaack <davidkna@users.noreply.github.com> Co-authored-by: Thomas O'Donnell <andytom@users.noreply.github.com>
10 lines
762 B
Tcsh
10 lines
762 B
Tcsh
setenv STARSHIP_SHELL tcsh;
|
|
setenv STARSHIP_SESSION_KEY `::STARSHIP:: session`;
|
|
set USER_PRECMD = "`alias precmd`";
|
|
set USER_POSTCMD = "`alias postcmd`";
|
|
set STARSHIP_PRECMD = 'set STARSHIP_CMD_STATUS = $status;set STARSHIP_PATH = ::STARSHIP::;set STARSHIP_END_TIME = `$STARSHIP_PATH time`;set STARSHIP_DURATION = 0;if ( $STARSHIP_START_TIME != -1 ) @ STARSHIP_DURATION = $STARSHIP_END_TIME - $STARSHIP_START_TIME;set prompt = "`$STARSHIP_PATH prompt --status $STARSHIP_CMD_STATUS --cmd-duration $STARSHIP_DURATION`";set STARSHIP_START_TIME = -1';
|
|
set STARSHIP_POSTCMD = 'set STARSHIP_START_TIME = `::STARSHIP:: time`';
|
|
alias precmd "$STARSHIP_PRECMD;$USER_PRECMD";
|
|
alias postcmd "$STARSHIP_POSTCMD;$USER_POSTCMD";
|
|
set STARSHIP_START_TIME = `::STARSHIP:: time`;
|