Commit graph

29 commits

Author SHA1 Message Date
aea4ff965e [zsh] Add exit status to the prompt; fix a stray space 2024-09-26 15:42:36 -07:00
ae8955f99e [zsh] Move the history number later in the prompt and add a numero sign
Show non-zero exit status after the history number as a red exclamation mark.

```
eryn in ~/.dotfiles on .dotfiles(main) №36407 at 10:06:48
%
```
2024-03-08 10:07:04 -08:00
d92641ae85 [zsh] Put the history number at the beginning of the top line of the prompt 2024-03-07 10:47:36 -08:00
a2bf66480c [zsh] Add the history number to RPROMPT 2024-03-05 11:07:49 -08:00
adfc594420 [zsh] Get the hostname back
Use != instead of -ne when checking $TERM_PROGRAM. This has been this way for years;
I do not really understand why this is happening now.
2022-11-30 11:41:55 -08:00
3dacd0156d [zsh] Add the time to the top line of the prompt 2022-10-31 10:27:21 -07:00
98dd139677 [zsh,tmux] Set the tmux window name from the ZSH prompt 2022-05-26 09:09:31 -07:00
ff561f808f [zsh] Treat git-svn the same as git in the prompt 2022-01-22 21:23:52 -08:00
1c2e9025cf [zsh] Do a bunch of profiling and clean up all my init functions -- shell init is so much faster now! 2022-01-22 10:13:05 -08:00
Eryn Wells
9ecc2774f1 [zsh] Remove ZLE mode -- all emacs now; fix STATUS 2021-11-29 13:43:28 -08:00
b9479c410d [zsh] Remove ZLE mode info from the prompt 2020-06-17 08:34:13 -07:00
932aac1928 [zsh] Set a file URL in the Apple Terminal title 2017-01-31 22:57:45 -08:00
6801901f3c Get prompt repo name on chpwd 2013-11-06 14:52:47 -08:00
5b2503fe2a Don't reset prompt info when switching modes -- performance fix! 2013-10-07 21:27:27 -07:00
28397d8b32 Prepend tmux session name to Xterm title 2013-04-04 09:41:07 -07:00
5ba6c60a91 Set PS1_JOBS 2013-03-12 13:57:58 -07:00
470b583f28 Show history count in RPS1 2013-03-06 09:16:25 -08:00
635baf6799 Add history and job count to RPS1 in loquacious 2013-02-15 21:27:21 -08:00
167cd9c78c Merge remote-tracking branch 'origin/master' 2013-01-23 11:14:33 -08:00
52396e8b55 Use add-zsh-hook for prompt hooks; fix colors of prompt components 2013-01-23 10:55:15 -08:00
2cbe3d7b00 Fix set_xterm_title function in prompt for iTerm2 2013-01-13 10:14:22 -08:00
8526e665b3 Fix vcs_info in prompt 2013-01-03 10:01:49 -08:00
c1251ecfc3 loquacious: Tweak help 2012-11-30 11:31:42 -08:00
cb810d4ef6 loquacious: Clean up some comments; autoload vcs_info 2012-11-30 11:30:04 -08:00
a0ab13cb8a Only show hostname when connected via SSH 2012-11-30 11:18:38 -08:00
11902b50a6 Tweak how repo data is displayed: on <repo>(<branch>) 2012-11-30 11:18:25 -08:00
e63cdb9aa7 Fix typo: {prompt_,}print_newline 2012-11-29 12:02:06 -08:00
d3b8abce8e Lots of clean up for loquacious prompt
- Move zle keymap select code to prompt module
- Use vcs_info to get repo information
- Reduce number of functions required to generate prompt
- Set $PS1 once in setup to a bunch of $PS1_* variables. These variables are set
  before each prompt. Doing this lets me change prompt themes more easily.
2012-11-29 11:15:24 -08:00
66438f666c Prompt configuration to a prompt theme
Move my prompt configuration to a prompt theme function in my $fpath. I call it
'loquacious'. The prompt is configured by the prompt_loquacious_setup function.

This change also necessitated a new function called prompt_colorize to generate
a string with the correct set of color escapes for the prompt.
2012-11-28 21:44:13 -08:00