[zsh] Remove all the shell-log calls because they are slow af
This commit is contained in:
		
							parent
							
								
									b1ab4a0446
								
							
						
					
					
						commit
						3536a9d9c2
					
				
					 14 changed files with 0 additions and 32 deletions
				
			
		
							
								
								
									
										3
									
								
								zprofile
									
										
									
									
									
								
							
							
						
						
									
										3
									
								
								zprofile
									
										
									
									
									
								
							|  | @ -1,11 +1,8 @@ | |||
| #!/usr/bin/env zsh | ||||
| # Eryn Wells <eryn@erynwells.me> | ||||
| 
 | ||||
| shell-log 'Initializing Login Environment' | ||||
| 
 | ||||
| # Start SSH agent for password-less logins | ||||
| if [ -z "$SSH_AUTH_SOCK" -a -x "$SSHAGENT" ]; then | ||||
|     print_info -l 1 'Starting ssh-agent' | ||||
|     eval `ssh-agent -s` | ||||
|     trap "kill $SSH_AGENT_PID" 0 | ||||
| fi | ||||
|  |  | |||
|  | @ -4,8 +4,6 @@ | |||
| 
 | ||||
| function init_env | ||||
| { | ||||
|     shell-log 'Initializing basic environment' | ||||
| 
 | ||||
|     export PAGER="less" | ||||
|     export MANPAGER=$PAGER | ||||
|     export EDITOR="vim" | ||||
|  |  | |||
|  | @ -7,8 +7,6 @@ autoload prepend_to_path | |||
| 
 | ||||
| function init_env_darwin | ||||
| { | ||||
|     shell-log "Initializing Darwin environment" | ||||
| 
 | ||||
|     export OSBUILD=`sysctl -n kern.osversion` | ||||
|     export OSVERSION=`sysctl -n kern.osproductversion` | ||||
|     export HWMODEL=`sysctl -n hw.model` | ||||
|  |  | |||
|  | @ -5,8 +5,6 @@ autoload binary_exists | |||
| 
 | ||||
| function init_rc_aliases | ||||
| { | ||||
|     shell-log -l 'debug' "Setting up shell aliases" | ||||
| 
 | ||||
|     alias j='jobs' | ||||
|     alias h='history' | ||||
|     alias df='df -h' | ||||
|  | @ -31,7 +29,6 @@ function init_rc_aliases | |||
|     binary_exists ledger && alias l='ledger' | ||||
|     binary_exists gpg2 && alias gpg='gpg2' | ||||
| 
 | ||||
|     shell-log -l debug 'Setting up suffix aliases' | ||||
|     alias -s c='vim' | ||||
|     alias -s tex='vim' | ||||
|     alias -s txt='vim' | ||||
|  |  | |||
|  | @ -3,8 +3,6 @@ | |||
| 
 | ||||
| function init_rc_configure_completion | ||||
| { | ||||
|     shell-log 'Initializing completion system' | ||||
| 
 | ||||
|     autoload -U compinit | ||||
|     compinit | ||||
| 
 | ||||
|  |  | |||
|  | @ -19,7 +19,6 @@ function init_configure_ls | |||
|         ls_options='-G' | ||||
|     fi | ||||
| 
 | ||||
|     shell-log -l debug "Setting up aliases for $1" | ||||
|     alias ls="$1 $ls_options" | ||||
|     alias la="$1 -A $ls_options" | ||||
|     alias ll="$1 -l $ls_options" | ||||
|  | @ -33,7 +32,6 @@ function init_configure_ls | |||
|             dircolors="$HOME/.dircolors/default.cfg" | ||||
|         fi | ||||
| 
 | ||||
|         shell-log -l debug "Setting up dircolors: `basename $dircolors`" | ||||
|         eval `$dircolors_bin $dircolors` | ||||
|     fi | ||||
| } | ||||
|  |  | |||
|  | @ -8,8 +8,6 @@ function init_rc_configure_prompt | |||
|         theme=loquacious | ||||
|     fi | ||||
| 
 | ||||
|     shell-log -l debug 'Configuring vcs_info' | ||||
| 
 | ||||
|     autoload -U add-zsh-hook | ||||
|     autoload -Uz vcs_info | ||||
| 
 | ||||
|  | @ -28,7 +26,6 @@ function init_rc_configure_prompt | |||
| 
 | ||||
|     add-zsh-hook precmd export_gitbranch | ||||
| 
 | ||||
|     shell-log "Configuring prompt with '$theme' theme" | ||||
|     autoload -U promptinit | ||||
|     promptinit | ||||
|     prompt $theme | ||||
|  |  | |||
|  | @ -3,8 +3,6 @@ | |||
| 
 | ||||
| function init_rc_configure_zle | ||||
| { | ||||
|     shell-log 'Configuring ZLE' | ||||
| 
 | ||||
|     local mode=$1 | ||||
|     if [[ -z "$mode" ]]; then | ||||
|         mode=emacs | ||||
|  | @ -13,7 +11,6 @@ function init_rc_configure_zle | |||
|     function configure_zle_emacs { } | ||||
|     function configure_zle_vim { } | ||||
| 
 | ||||
|     shell-log -l debug "Using $mode command line editing mode" | ||||
|     if [[ $mode == 'vim' ]]; then | ||||
|         bindkey -v | ||||
|         configure_zle_vim | ||||
|  |  | |||
|  | @ -5,8 +5,6 @@ autoload binary_exists | |||
| 
 | ||||
| function init_rc_darwin | ||||
| { | ||||
|     shell-log 'Initializing Interactive Environment for macOS' | ||||
| 
 | ||||
|     alias acls='command ls -le' | ||||
| 
 | ||||
|     # These things might have been installed by Homebrew, and I like the GNU | ||||
|  |  | |||
|  | @ -7,7 +7,6 @@ function init_zsh_functions | |||
| { | ||||
|     local myfpath="$HOME/.zsh/func" | ||||
| 
 | ||||
|     shell-log "Loading functions in $myfpath" | ||||
|     for func in $myfpath/*; do | ||||
|         [[ ! -e "$func" || -d "$func" ]] && continue | ||||
| 
 | ||||
|  | @ -15,7 +14,6 @@ function init_zsh_functions | |||
|         [[ "$functionName" =~ "prompt_*" ]] && continue | ||||
|         [[ "$functionName" =~ "init_*" ]] && continue | ||||
| 
 | ||||
|         shell-log -l debug "Loading $functionName" | ||||
|         autoload +X $functionName | ||||
|     done | ||||
| 
 | ||||
|  |  | |||
|  | @ -3,8 +3,6 @@ | |||
| 
 | ||||
| function init_zsh_history | ||||
| { | ||||
|     shell-log 'Setting up history' | ||||
| 
 | ||||
|     setopt \ | ||||
|         APPEND_HISTORY \ | ||||
|         EXTENDED_HISTORY \ | ||||
|  |  | |||
|  | @ -3,8 +3,6 @@ | |||
| 
 | ||||
| function init_zsh_options | ||||
| { | ||||
|     shell-log 'Setting shell options' | ||||
| 
 | ||||
|     # Report seconds since shell was invoked in milliseconds | ||||
|     typeset -F SECONDS | ||||
| 
 | ||||
|  |  | |||
|  | @ -19,9 +19,7 @@ function load_module | |||
| 
 | ||||
|     fpath+=($modpath) | ||||
| 
 | ||||
|     shell-log "Loading module: $mod" | ||||
|     for func in `ls $modpath`; do | ||||
|         shell-log "Loading function: $func" | ||||
|         autoload $func | ||||
|     done | ||||
| 
 | ||||
|  |  | |||
							
								
								
									
										2
									
								
								zshrc
									
										
									
									
									
								
							
							
						
						
									
										2
									
								
								zshrc
									
										
									
									
									
								
							|  | @ -1,8 +1,6 @@ | |||
| #!/usr/bin/env zsh | ||||
| # Eryn Wells <eryn@erynwells.me> | ||||
| 
 | ||||
| shell-log 'Initializing Interactive Environment' | ||||
| 
 | ||||
| autoload +X init_app_environments | ||||
| autoload +X init_rc_aliases | ||||
| autoload +X init_rc_configure_completion | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue