(bugfix) make compatible with fish version >=3.3
- cleanup - minor comments and fixes
This commit is contained in:
@ -4,6 +4,7 @@
|
|||||||
set AWS_IAM_USER ""
|
set AWS_IAM_USER ""
|
||||||
|
|
||||||
# TODO setup your aws-mfa credential keys in the credentials file
|
# 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
|
# AWS Account details
|
||||||
set DEV_ACCOUNT_ID ""
|
set DEV_ACCOUNT_ID ""
|
||||||
@ -11,6 +12,7 @@ set STG_ACCOUNT_ID ""
|
|||||||
set PROD_ACCOUNT_ID ""
|
set PROD_ACCOUNT_ID ""
|
||||||
set OPS_ACCOUNT_ID ""
|
set OPS_ACCOUNT_ID ""
|
||||||
|
|
||||||
|
# Update if different regions are used in your setup
|
||||||
export AWS_REGION=eu-west-1
|
export AWS_REGION=eu-west-1
|
||||||
export AWS_DEFAULT_REGION=eu-west-1
|
export AWS_DEFAULT_REGION=eu-west-1
|
||||||
|
|
||||||
|
|||||||
@ -86,32 +86,12 @@ function git::untracked
|
|||||||
end
|
end
|
||||||
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
|
function fish_prompt
|
||||||
set -l symbol "λ "
|
set -l symbol "λ "
|
||||||
set -l code $status
|
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"
|
if test -n "$ssh_client"
|
||||||
set -l host (hostname -s)
|
set -l host (hostname -s)
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
# moved original theme right prompt to left as we are working with a new line promt now.
|
# moved original theme right prompt to left
|
||||||
function t31m_prompt_right
|
function t31m_prompt_left
|
||||||
|
|
||||||
if test "$theme_complete_path" = "yes"
|
if test "$theme_complete_path" = "yes"
|
||||||
set cwd (prompt_pwd)
|
set cwd (prompt_pwd)
|
||||||
5
main.sh
5
main.sh
@ -16,7 +16,10 @@ curl -fsSL https://get.docker.com | sh
|
|||||||
#curl -fsSL https://test.docker.com | sh
|
#curl -fsSL https://test.docker.com | sh
|
||||||
|
|
||||||
# install docker-compose
|
# 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
|
chmod +x /usr/local/bin/docker-compose
|
||||||
|
|
||||||
usermod -aG docker t31m
|
usermod -aG docker t31m
|
||||||
|
|||||||
Reference in New Issue
Block a user