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 | ||
− | + | alias [[trim]]="awk ' {\$1=\$1} 1 '" | |
+ | [[source]] <([[kubectl completion zsh]]) | ||
+ | [[source]] <([[k9s completion zsh]]) | ||
+ | |||
+ | alias k="kubectl" | ||
+ | alias tf="terraform" | ||
+ | |||
+ | alias g="grep" | ||
+ | alias gi="grep -i" | ||
+ | alias gv="grep -v" | ||
+ | |||
+ | alias la="ls -la" | ||
+ | |||
+ | alias NF="awk '{print \$NF}'" | ||
+ | |||
+ | alias [[srcprofile]]="[[source]] ~/[[.bash_profile]]" | ||
+ | alias [[sourceprofile]]="[[source]] ~/[[.bash_profile]]" | ||
+ | alias [[zsourceprofile]]="source ~/[[.zprofile]]" | ||
+ | |||
+ | alias p8="ping 8.8.8.8" | ||
+ | |||
+ | 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 [[viawsconfig]]="vi ~/[[.aws/config]]" | ||
+ | |||
+ | alias [[awswhoiam]]="[[aws iam get-user]]" | ||
+ | |||
+ | alias viprofile="vi ~/.bash_profile" | ||
+ | alias vizprofile="vi ~/.zprofile" | ||
+ | #[[viprofile]] () { vi ~/.bash_profile } | ||
== Related terms == | == Related terms == | ||
Line 17: | Line 54: | ||
* <code>[[viprofile]]</code> | * <code>[[viprofile]]</code> | ||
* [[Append a space]] | * [[Append a space]] | ||
− | * <code> | + | * <code>[[compdef]]</code> |
− | |||
− | |||
− | |||
== See also == | == See also == |
Advertising: