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 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]]" | ||
+ | |||
+ | [[viprofile]] () { vi ~/.bash_profile } | ||
== Related terms == | == Related terms == | ||
− | * [[ | + | * [[shell functions]] |
* <code>[[ifconfig]]</code> and [[IP]] alias address | * <code>[[ifconfig]]</code> and [[IP]] alias address | ||
* <code>[[.bashrc and .bash profile]]</code> | * <code>[[.bashrc and .bash profile]]</code> | ||
* <code>[[source]]</code> | * <code>[[source]]</code> | ||
* <code>[[aws list all]]</code> | * <code>[[aws list all]]</code> | ||
− | * <code>[[suaws]]</code> [[ | + | * <code>[[suaws]]</code> [[function]] |
* <code>[[.zprofile]]</code> | * <code>[[.zprofile]]</code> | ||
* <code>[[viprofile]]</code> | * <code>[[viprofile]]</code> | ||
* [[Append a space]] | * [[Append a space]] | ||
− | |||
− | |||
− | |||
− | |||
== See also == | == See also == |
Advertising: