diff --git a/fish/theme-t31m/functions/envAWS.fish b/fish/theme-t31m/functions/envAWS.fish index d555a69..3448d5e 100644 --- a/fish/theme-t31m/functions/envAWS.fish +++ b/fish/theme-t31m/functions/envAWS.fish @@ -4,6 +4,7 @@ set AWS_IAM_USER "" # TODO setup your aws-mfa credential keys in the credentials file +# TODO replace "Administrator" Role with the actual role you want to assume. # AWS Account details set DEV_ACCOUNT_ID "" @@ -11,6 +12,7 @@ set STG_ACCOUNT_ID "" set PROD_ACCOUNT_ID "" set OPS_ACCOUNT_ID "" +# Update if different regions are used in your setup export AWS_REGION=eu-west-1 export AWS_DEFAULT_REGION=eu-west-1 diff --git a/fish/theme-t31m/functions/fish_prompt.fish b/fish/theme-t31m/functions/fish_prompt.fish index d870271..a777587 100644 --- a/fish/theme-t31m/functions/fish_prompt.fish +++ b/fish/theme-t31m/functions/fish_prompt.fish @@ -86,32 +86,12 @@ function git::untracked end end -function fish_right_prompt - - # if test "$theme_complete_path" = "yes" - # set cwd (prompt_pwd) - # else - # set cwd (basename (prompt_pwd)) - - # if git::is_repo - # set root_folder (command git rev-parse --show-toplevel 2>/dev/null) - # set parent_root_folder (dirname $root_folder) - # set cwd (echo $PWD | sed -e "s|$parent_root_folder/||") - # end - # end - - # Because of having a two line promt now we dont need right anymore so we dont print anything here atm - #printf (yellow)"("(off)$cwd(yellow)") "(off) - #printf (off)(date +%H(yellow):(off)%M(yellow):(off)%S)(off)"\n" -end - - function fish_prompt set -l symbol "λ " set -l code $status - set t31m_custom_right (t31m_prompt_right) + set t31m_custom_left (t31m_prompt_left) - echo -ns "$t31m_custom_right" + echo -ns "$t31m_custom_left" if test -n "$ssh_client" set -l host (hostname -s) diff --git a/fish/theme-t31m/functions/fish_right_prompt.fish b/fish/theme-t31m/functions/fish_right_prompt.fish deleted file mode 100644 index e69de29..0000000 diff --git a/fish/theme-t31m/functions/t31m_prompt_right.fish b/fish/theme-t31m/functions/t31m_prompt_left.fish similarity index 80% rename from fish/theme-t31m/functions/t31m_prompt_right.fish rename to fish/theme-t31m/functions/t31m_prompt_left.fish index eaaef40..aebc8db 100644 --- a/fish/theme-t31m/functions/t31m_prompt_right.fish +++ b/fish/theme-t31m/functions/t31m_prompt_left.fish @@ -1,5 +1,5 @@ -# moved original theme right prompt to left as we are working with a new line promt now. -function t31m_prompt_right +# moved original theme right prompt to left +function t31m_prompt_left if test "$theme_complete_path" = "yes" set cwd (prompt_pwd) diff --git a/main.sh b/main.sh index fc26221..d302e18 100755 --- a/main.sh +++ b/main.sh @@ -16,7 +16,10 @@ curl -fsSL https://get.docker.com | sh #curl -fsSL https://test.docker.com | sh # install docker-compose -curl -L https://github.com/docker/compose/releases/download/1.25.4/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose +# v1 +# curl -L https://github.com/docker/compose/releases/download/1.25.4/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose +# v2 +curl -L https://github.com/docker/compose/releases/download/v2.5.0/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose chmod +x /usr/local/bin/docker-compose usermod -aG docker t31m