File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- export ZSH=" $HOME /.oh-my-zsh"
2- # See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
3- ZSH_THEME=" crcandy"
4- HYPHEN_INSENSITIVE=" true"
5- zstyle ' :omz:update' mode disabled # disable automatic updates
6- ENABLE_CORRECTION=" true"
7- COMPLETION_WAITING_DOTS=" true"
8- plugins=(git poetry colored-man-pages docker-compose gitignore pylint fzf)
9- source $ZSH /oh-my-zsh.sh
1+ export PATH=" $HOME /.local/bin:$PATH "
2+
3+ # Initialize Starship prompt
4+ eval " $( starship init zsh) "
5+
106fpath+=~ /.zfunc
117autoload -Uz compinit && compinit
128HISTFILE=~ /.commandhistory/.zsh_history
Original file line number Diff line number Diff line change @@ -49,12 +49,14 @@ COPY --chown=${USERNAME}:${USERNAME} known_hosts /home/${USERNAME}/.ssh/known_ho
4949# Non Root User
5050USER ${USERNAME}
5151WORKDIR /home/${USERNAME}
52+ ENV PATH="/home/${USERNAME}/.local/bin:${PATH}"
5253
53- # Oh-My-Zsh user config
54+ # Starship user config
5455RUN set -x ; \
55- bash -c "mkdir -p {.zfunc,.commandhistory}" \
56- && sh -c "$( curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/ install.sh)" "" --unattended
56+ bash -c "mkdir -p {.zfunc,.commandhistory,.config }" \
57+ && curl -sS https://starship.rs/ install.sh | sh -s -- -y -b /home/${USERNAME}/.local/bin
5758COPY --chown=${USERNAME}:${USERNAME} .zshrc .zshrc
59+ COPY --chown=${USERNAME}:${USERNAME} starship.toml /home/${USERNAME}/.config/starship.toml
5860
5961ENTRYPOINT [ "/usr/bin/zsh" ]
6062
Original file line number Diff line number Diff line change 1+ "$schema" = ' https://starship.rs/config-schema.json'
2+
3+ [aws ]
4+ disabled = true
5+
6+ [package ]
7+ disabled = true
8+
9+ [gcloud ]
10+ disabled = true
11+
12+ [azure ]
13+ disabled = true
14+
15+ [nodejs ]
16+ disabled = true
17+
18+ [character ]
19+ success_symbol = ' [β](bold green)'
20+
21+ [cmd_duration ]
22+ min_time = 500
23+ format = ' underwent [$duration](bold yellow)'
24+
25+ [directory ]
26+ truncation_length = 255
27+ truncate_to_repo = false
28+ use_logical_path = false
You canβt perform that action at this time.
0 commit comments