aliases: add genpass function
This commit is contained in:
		
							parent
							
								
									77b53e04dd
								
							
						
					
					
						commit
						f73dbedab4
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		|  | @ -1,6 +1,5 @@ | ||||||
| alias curl="curl -L" | alias curl="curl -L" | ||||||
| alias find=bfs | alias find=bfs | ||||||
| alias genpass=$'dd status=none if=/dev/urandom bs=2048 count=1|LANG=C.UTF-8 grep -Pao \'[a-zA-Z0-9`~!@#$%^&*()_+-=\\[\\]{}|:;<>?/.,]\'|tail -n32|tr -d "\\n";echo' |  | ||||||
| alias rm="rm -v" | alias rm="rm -v" | ||||||
| alias watch="watch " # allow aliases in watch | alias watch="watch " # allow aliases in watch | ||||||
| 
 | 
 | ||||||
|  | @ -14,6 +13,10 @@ alias k="kubectl" | ||||||
| alias kns="kubens" | alias kns="kubens" | ||||||
| alias kctx="kubectx" | alias kctx="kubectx" | ||||||
| 
 | 
 | ||||||
|  | genpass() { | ||||||
|  | 	dd status=none if=/dev/urandom bs=2048 count=1|LANG=C.UTF-8 grep -Pao '[a-zA-Z0-9]'|tail -n "$1"|tr -d '\n';echo | ||||||
|  | } | ||||||
|  | 
 | ||||||
| alias git-amend-push="git commit --amend -a --no-edit && git push --force-with-lease" | alias git-amend-push="git commit --amend -a --no-edit && git push --force-with-lease" | ||||||
| alias flux-watch="watch flux get kustomization\;echo\;kubectl get helmrelease,cluster,sts,deploy,pod,pvc" | alias flux-watch="watch flux get kustomization\;echo\;kubectl get helmrelease,cluster,sts,deploy,pod,pvc" | ||||||
| alias flux-refresh="flux reconcile source git flux-system" | alias flux-refresh="flux reconcile source git flux-system" | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue