Editing ~/.bash aliases

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
# Profile Bash
+
 
alias viprofile="vi ~/.bash/profile"
 
alias vialiases="vi ~/.bash/.bash_aliases"
 
alias [[srcprofile]]="[[source]] ~/[[.bash_profile]]"
 
alias [[srcaliases]]="[[source]] ~/[[.bash_aliases]]"
 
alias [[sourceprofile]]="[[source]] ~/[[.bash_profile]]"
 
alias [[zsourceprofile]]="source ~/[[.zprofile]]"
 
alias vizprofile="vi ~/.zprofile"
 
 
# tools
 
 
  alias x="[[exit]]"
 
  alias x="[[exit]]"
 +
 +
alias mp="[[multipass (command)|multipass]]"
 +
 
  alias [[soniq]]="[[sort]] | [[uniq]]"
 
  alias [[soniq]]="[[sort]] | [[uniq]]"
  alias [[bi]]="brew install"
+
 
 
+
  alias [[trim]]="awk ' {\$1=\$1} 1 '"
  # Kubernetes
+
 
 +
  [[source]] <([[kubectl completion zsh]])
 +
[[source]] <([[k9s completion zsh]])
 +
 
 
  alias k="kubectl"
 
  alias k="kubectl"
alias kg="kubectl get"
 
 
  alias kgn="kubectl get nodes"
 
  alias kgn="kubectl get nodes"
 
  alias kgp="kubectl get pods"
 
  alias kgp="kubectl get pods"
 
  alias kgd="kubectl get deploy"
 
  alias kgd="kubectl get deploy"
 
  alias kgs="kubectl get sts"
 
  alias kgs="kubectl get sts"
alias kgi="kubectl get ingress"
 
 
  alias kgpvc="kubectl get pvc"
 
  alias kgpvc="kubectl get pvc"
  alias kdi="[[kubectl describe ingress]]"
+
 
 +
  [[export]] [[do]]="[[-o yaml]] [[--dry-run]]=client"
 
  alias [[vikubeconfig]]="vi [[~/.kube/config]]"
 
  alias [[vikubeconfig]]="vi [[~/.kube/config]]"
 
  alias [[catkubeconfig]]="cat [[~/.kube/config]]"
 
  alias [[catkubeconfig]]="cat [[~/.kube/config]]"
+
 
[[export]] [[do]]="[[-o yaml]] [[--dry-run]]=client"
 
 
# Vi
 
alias [[cathost]]="sudo cat [[/etc/hosts]]"
 
alias [[vihost]]="sudo cat [[/etc/hosts]]"
 
 
alias [[catetchost]]="sudo cat [[/etc/hosts]]"
 
alias [[vietchost]]="sudo cat [[/etc/hosts]]"
 
 
# Terraform
 
 
  alias tf="[[terraform]]"
 
  alias tf="[[terraform]]"
 
  alias tg="[[terragrunt]]"
 
  alias tg="[[terragrunt]]"
 
+
   
  # Grep
 
 
  alias g="grep"
 
  alias g="grep"
 
  alias gi="grep -i"
 
  alias gi="grep -i"
Line 45: Line 30:
 
  alias gv="grep -v"
 
  alias gv="grep -v"
 
  alias agir="ag -ir"
 
  alias agir="ag -ir"
+
 
 
  alias la="ls -la"
 
  alias la="ls -la"
+
 
 
  alias NF="awk '{print \$NF}'"
 
  alias NF="awk '{print \$NF}'"
   
+
 
  # Net
+
alias viprofile="vi ~/.bash/profile"
  alias [[p8]]="ping 8.8.8.8"
+
alias vialiases="vi ~/.bash/.bash_aliases"
  alias [[p1]]="ping [[1.1.1.1]]"
+
  alias [[srcprofile]]="[[source]] ~/[[.bash_profile]]"
 
+
alias [[srcaliases]]="[[source]] ~/[[.bash_aliases]]"
# MULTIPASS
+
  alias [[sourceprofile]]="[[source]] ~/[[.bash_profile]]"
 +
  alias [[zsourceprofile]]="source ~/[[.zprofile]]"
 +
alias vizprofile="vi ~/.zprofile"
 +
 
 +
alias p8="ping 8.8.8.8"
 +
 
 +
  alias [[bip]]="while true; do [[tput bel]]; sleep 1; done"
 +
 
 
  alias mp="[[multipass]]"
 
  alias mp="[[multipass]]"
 
  alias mp_l="[[multipass list]]"
 
  alias mp_l="[[multipass list]]"
Line 63: Line 55:
 
  alias mpc="multipass connect"
 
  alias mpc="multipass connect"
  
# SSH
+
 
 
  alias [[viconfig]]="vi ~/[[.ssh/config]]"
 
  alias [[viconfig]]="vi ~/[[.ssh/config]]"
 
  alias [[visshconfig]]="vi ~/[[.ssh/config]]"
 
  alias [[visshconfig]]="vi ~/[[.ssh/config]]"
 
# AWS
 
 
  alias [[viawsconfig]]="vi ~/[[.aws/config]]"
 
  alias [[viawsconfig]]="vi ~/[[.aws/config]]"
 
  alias [[viawscredentials]]="vi ~/[[.aws/credentials]]"
 
  alias [[viawscredentials]]="vi ~/[[.aws/credentials]]"
  alias [[catawsconfig]]="cat ~/[[.aws/config]]"
+
   
alias [[catawscredentials]]="cat ~/[[.aws/credentials]]"
 
 
  alias [[awswhoiam]]="[[aws iam get-user]]"
 
  alias [[awswhoiam]]="[[aws iam get-user]]"
  
  # REVIEW
+
  alias viprofile="vi ~/.bash_profile"
  alias [[bip]]="while true; do [[tput bel]]; sleep 1; done"
+
  alias vizprofile="vi ~/.zprofile"
 
+
#[[viprofile]] () { vi ~/.bash_profile }
  
 
  alias codecode="sed s/'^'/'\<code\>'/ | sed s/'$'/'\<\/code\>'/"
 
  alias codecode="sed s/'^'/'\<code\>'/ | sed s/'$'/'\<\/code\>'/"
Line 84: Line 73:
 
  }
 
  }
  
  alias [[trim]]="awk ' {\$1=\$1} 1 '"
+
  alias [[bi]]="brew install"
 
 
[[source]] <([[kubectl completion zsh]])
 
[[source]] <([[k9s completion zsh]])
 
  
  
== Related ==
+
[[~/.bash_profile]]
* <code>[[~/.bash_profile]]</code>
 
* [[fish.sh]]
 
  
 
== See also ==
 
== See also ==

Please note that all contributions to wikieduonline may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Wikieduonline:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)

Templates used on this page:

Advertising: