Commit graph

42 commits

Author SHA1 Message Date
8ebe1788bf New message/log functions 2012-11-29 15:18:57 -08:00
0c08add311 Move up() to its own function file 2012-11-29 13:28:42 -08:00
6184eba778 Make various init stages into functions in zshrc 2012-11-29 13:26:49 -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
e0ab531085 Colorize list of PIDs for kill command 2012-11-28 09:44:56 -08:00
b1bd477d8b Make up function just cd, not pushd 2012-11-12 23:13:16 -08:00
395986145b Fix fpath settings 2012-11-02 14:40:54 -07:00
07ce43e28e Fix typo: .zsh/func/makers 2012-11-02 14:39:04 -07:00
59cabba725 Fix makers function path 2012-11-02 14:38:34 -07:00
be10e3bbc6 Unset $is_first_prompt instead setting it to 0 after its use 2012-10-10 14:08:56 -07:00
ab3f017c03 Define functions based on zshell version
Rather than figuring out the shell version inside the precmd functions, do the
computation once at startup and define precmd functions based on that. Just an
ever so slight increase in performance.

...cause I'm a nerd. :)
2012-10-10 14:07:28 -07:00
738cadb50f Minor tweaks
- Proper conditional expression for printing XTerm titlebar stuff
- Local variables in precmd_flags_rprompt
2012-10-10 13:56:46 -07:00
cbed169ca9 Export gitbranch variable after getting branch name from git 2012-10-10 13:53:51 -07:00
0e204b4ddf Fix condition for showing hostname in prompt
Was using -z instead of -n; inverted condition.
2012-10-08 11:11:39 -07:00
2fa6df3d01 Add some tests for SSH_CONNECTION 2012-10-08 11:10:01 -07:00
ecbe500f62 Use noisy functions for module load status messages 2012-10-05 11:39:14 -07:00
776bc1ef2a Move maker functions to mkrs 2012-10-05 11:39:14 -07:00
71b4dceb14 RPROMPT no longer transient 2012-10-02 17:13:55 -07:00
a75f1411e7 Clean up prompt precmd and preexec stuff -- everything is dynamic now 2012-10-01 13:37:29 -07:00
b9284b55bf Add preexec function to print a newline 2012-10-01 11:49:58 -07:00
70d8f0b9d4 Rebuild PROMPT with new fanciness 2012-10-01 11:37:53 -07:00
41d79867d9 Only show user@host on remote machines 2012-08-20 14:17:13 -07:00
7cf88c785e Mostly message printing updates; some other random stuff too 2012-08-17 12:52:00 -07:00
1400941de1 Add status messages to shell init files
Mostly for profiling, but I think it's cool to have status occasionally. In the
process, I also did some clean up, moving some stuff between profile, rc, and
env.
2012-08-07 11:19:43 -07:00
7ba0953b36 Conditionally source ~/.rc 2012-04-17 23:35:27 -07:00
a3360917f0 Use exported SYS variable for dircolors config 2012-04-17 23:17:51 -07:00
ce63e3f83c Clean up zshrc; add comments 2012-04-16 12:19:58 -07:00
83f54375a7 Use black background instead of manutally specified colors for command divider 2012-04-10 10:04:09 -07:00
6522f86f37 Make git branch yellow and change indicator red 2012-03-21 10:07:36 -07:00
6d2cd63eb8 Move pending changes flag to front of git branch name 2012-03-14 13:59:30 -07:00
75c0b999c1 Add pending changes flag to rprompt git info 2012-03-14 13:33:04 -07:00
e76f95459b Revise prompt
- precmd_separator is now precmd_separator_info and prints a bunch of system
  information
- New function precmd_git_rprompt prints branch name (more to come later)
2012-03-14 13:17:03 -07:00
7e531c1a0f Update up() 2011-12-18 22:51:02 -08:00
e752364478 Update aliases for pushd and popd 2011-11-30 13:08:57 -08:00
6e9ffb5cb8 Prompt changes
PROMPT is ' $history $bgjob $time (#|%) '
RPROMPT is '$host:$pwd'
2011-10-20 13:45:40 -07:00
0bd49aaa56 Do precmd setup in separate functions
- Use $precmd_functions to call a set of functions prior to each prompt
- Write a separator before each prompt made up of a line of hyphens and a
  right-justified timestamp
2011-09-16 11:28:09 -07:00
6fab5c22b8 Alias for popd 2011-09-14 16:51:40 -07:00
e0398fd5c8 Function to go up n directories 2011-09-14 16:50:33 -07:00
7d308754fc Remove the nc alias; unused and caused some issues earlier... 2011-09-13 11:26:06 -07:00
Eryn Wells
d14cbca661 A couple changes to the ZSH config
- Add a timestamp to the prompt with %* and show the history number in red if
  the command failed
- Store a million history entries in the history file
2011-06-29 22:46:17 -07:00
Eryn Wells
662fe0334c Initial commit 2011-05-03 21:53:50 -07:00