Initial commit
This commit is contained in:
		
						commit
						662fe0334c
					
				
					 37 changed files with 1614 additions and 0 deletions
				
			
		
							
								
								
									
										12
									
								
								zsh/func/pw
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								zsh/func/pw
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,12 @@
 | 
			
		|||
#!/bin/zsh
 | 
			
		||||
# vim:ft=zsh
 | 
			
		||||
 | 
			
		||||
pw ()
 | 
			
		||||
{
 | 
			
		||||
    length='12'
 | 
			
		||||
    if [[ $1 -ne "" ]]; then
 | 
			
		||||
        length=$1
 | 
			
		||||
    fi
 | 
			
		||||
 | 
			
		||||
    tr -dc 'A-Za-z0-9!@#$%^&*' < /dev/urandom | fold -w $length | head -n 1
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue