This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function usage() { | |
echo "Usage: $0 [region] [cluster name] [role arn]" | |
echo "If you're not using a role, [region] and [role arn] are optional" | |
echo "If you just use cluster name, you need aws-iam-authenticator installed" | |
} | |
if [ -z $1 ]; then | |
usage | |
exit 1 | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function fish_mode_prompt --description 'Displays the current mode' | |
# Do nothing if not in vi mode | |
if test "$fish_key_bindings" = "fish_vi_key_bindings" | |
switch $fish_bind_mode | |
case default | |
set_color --bold red | |
echo 🅽 | |
case insert | |
set_color --bold green | |
echo 🅸 |