Adds alias for dirs command
This commit is contained in:
		
							parent
							
								
									0ac2a740f5
								
							
						
					
					
						commit
						06178e66dd
					
				
					 1 changed files with 12 additions and 0 deletions
				
			
		
							
								
								
									
										12
									
								
								.zsh_profile
									
										
									
									
									
								
							
							
						
						
									
										12
									
								
								.zsh_profile
									
										
									
									
									
								
							|  | @ -24,6 +24,10 @@ alias find="find -E" | |||
| alias ccat="pygmentize -g" | ||||
| 
 | ||||
| alias dir='find . -maxdepth 1 -type d -regex "\.\/[^.].+"' | ||||
| 
 | ||||
| # view the Unix directory stack as maintained through | ||||
| #     pushd and popd commands | ||||
| alias wdirs='dirs | tr " " "\n" | sort -r' | ||||
| # END: aliases | ||||
| 
 | ||||
| # BEGIN: functions | ||||
|  | @ -51,6 +55,9 @@ source ~/.js_to_bash.sh | |||
| # custom git functions | ||||
| source ~/.git_functions.sh | ||||
| 
 | ||||
| # custom bash helpers functions | ||||
| source ~/.misc_functions.sh | ||||
| 
 | ||||
| # generates placeholder content for FE work | ||||
| function lorem { | ||||
|     text="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum." | ||||
|  | @ -63,6 +70,11 @@ function loremcp { | |||
|     lorem | pbcopy | ||||
| } | ||||
| 
 | ||||
| # searches all PATH directories for a keyword | ||||
| function wsearchpath { | ||||
|   echo $PATH | tr ':' '\n' | xargs -I {} find {} -type f -perm +111 -maxdepth 1 -name "*${1}*" -print | xargs basename | ||||
| } | ||||
| 
 | ||||
| # run cmatrix command for 3 seconds before exiting | ||||
| #. $HOME/.matrix_intro.sh | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue