From 1e22dd68d3776a3d156b00cb2a45e05a92f60830 Mon Sep 17 00:00:00 2001 From: Dmitry Date: Tue, 5 May 2020 12:47:05 +0300 Subject: [PATCH] Append custom config to zsh --- install-docker.sh | 3 +++ zshrc-append.txt | 3 +++ 2 files changed, 6 insertions(+) create mode 100644 zshrc-append.txt diff --git a/install-docker.sh b/install-docker.sh index fb4a351..5b05338 100755 --- a/install-docker.sh +++ b/install-docker.sh @@ -44,6 +44,9 @@ cp config.json ~/.docker # Install oh my zsh sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" +# Append custom config to zsh +cat zshrc-append.txt >> ~/.zshrc + if [ ! -f ~/.ssh/id_rsa ]; then ssh-keygen -t rsa -b 4096 -N "" -f ~/.ssh/id_rsa fi diff --git a/zshrc-append.txt b/zshrc-append.txt new file mode 100644 index 0000000..44f89f0 --- /dev/null +++ b/zshrc-append.txt @@ -0,0 +1,3 @@ +alias up="docker-compose up --build --force-recreate" + +export PROMPT='${ret_status} $fg[red]%}$USER$fg[yellow]%}@$fg[cyan]%}%m %{$fg[cyan]%}%c%{$reset_color%} $(git_prompt_info)' \ No newline at end of file