Editing Bash: alias

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 4: Line 4:
 
* Execute <code>alias</code> to display your aliases
 
* Execute <code>alias</code> to display your aliases
  
  touch [[~/.bash_aliases]]
+
  touch ~/[[.bash_profile]]
  
 +
 +
alias mp="[[multipass (command)|multipass]]"
 +
 +
[[set -o vi]]
 +
 +
alias [[trim]]="awk ' {\$1=\$1} 1 '"
 +
 +
[[source]] <([[kubectl completion zsh]])
 +
[[source]] <([[k9s completion zsh]])
 +
 +
alias k="kubectl"
 +
[[export]] [[do]]="[[-o yaml]] [[--dry-run]]=client"
 +
alias [[vikubeconfig]]="vi [[~/.kube/config]]"
 +
alias catkubeconfig="cat [[~/.kube/config]]"
 +
 +
alias tf="[[terraform]]"
 +
alias tg="[[terragrunt]]"
 +
 +
alias g="grep"
 +
alias gi="grep -i"
 +
alias gir="grep -i"
 +
alias gv="grep -v"
 +
alias agir="ag -ir"
 +
 +
alias la="ls -la"
 +
 +
alias NF="awk '{print \$NF}'"
 +
 +
alias viprofile="vi ~/.bash/profile"
 +
alias [[srcprofile]]="[[source]] ~/[[.bash_profile]]"
 +
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_l="[[multipass list]]"
 +
alias mp_la="[[multipass launch]]"
 +
alias mp_launch="[[multipass launch]]"
 +
alias mp_find="[[multipass find]]"
 +
alias mp_f="[[multipass find]]"
 +
alias mpc="multipass connect"
 +
 +
 +
alias [[viconfig]]="vi ~/[[.ssh/config]]"
 +
alias [[visshconfig]]="vi ~/[[.ssh/config]]"
 +
alias [[viawsconfig]]="vi ~/[[.aws/config]]"
 +
alias [[viawscredentials]]="vi ~/[[.aws/credentials]]"
 +
 +
alias [[awswhoiam]]="[[aws iam get-user]]"
 +
 +
alias viprofile="vi ~/.bash_profile"
 +
alias vizprofile="vi ~/.zprofile"
 +
#[[viprofile]] () { vi ~/.bash_profile }
 +
 +
alias codecode="sed s/'^'/'\<code\>'/ | sed s/'$'/'\<\/code\>'/"
 +
 +
prepend_space () {
 +
          sed s/^/" "/
 +
}
 +
 +
alias [[bi]]="brew install"
  
 
== Related terms ==
 
== Related terms ==

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: