add zsh config
This commit is contained in:
		
							parent
							
								
									167d526998
								
							
						
					
					
						commit
						77b53e04dd
					
				
					 2 changed files with 31 additions and 0 deletions
				
			
		
							
								
								
									
										20
									
								
								.zshconfig/99-aliases.zsh
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								.zshconfig/99-aliases.zsh
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,20 @@ | ||||||
|  | alias curl="curl -L" | ||||||
|  | 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 watch="watch " # allow aliases in watch | ||||||
|  | 
 | ||||||
|  | alias ip="ip -c" | ||||||
|  | alias ipa="ip -br a" | ||||||
|  | alias ipl="ip -br l" | ||||||
|  | alias ip6="ip -6 a|grep -E -v -B 1 -e 'scope (link|host)' -e valid_lft -e '^[0-9]*:' --color=no" | ||||||
|  | alias ipr="ip r" | ||||||
|  | 
 | ||||||
|  | alias k="kubectl" | ||||||
|  | alias kns="kubens" | ||||||
|  | alias kctx="kubectx" | ||||||
|  | 
 | ||||||
|  | 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-refresh="flux reconcile source git flux-system" | ||||||
|  | alias flux-amend-push="git-amend-push && flux-refresh && flux-watch" | ||||||
							
								
								
									
										11
									
								
								.zshrc
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								.zshrc
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,11 @@ | ||||||
|  | export ZSH=$ZDOTDIR/.zshconfig | ||||||
|  | export EDITOR="vim" | ||||||
|  | export VISUAL="vim" | ||||||
|  | 
 | ||||||
|  | autoload -U compinit && compinit | ||||||
|  | autoload -U colors && colors | ||||||
|  | 
 | ||||||
|  | for file in $ZSH/*.zsh;do source $file;done | ||||||
|  | 
 | ||||||
|  | eval "$(direnv hook zsh)" | ||||||
|  | eval "$(atuin init zsh --disable-up-arrow)" | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue