Skip to content

Commit a57afc9

Browse files
committed
πŸ§‘β€πŸ’» Switch from Oh-My-Zsh to Staship Prompt for leaner Shell.
1 parent af1498e commit a57afc9

3 files changed

Lines changed: 38 additions & 12 deletions

File tree

β€Ž.zshrcβ€Ž

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
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+
106
fpath+=~/.zfunc
117
autoload -Uz compinit && compinit
128
HISTFILE=~/.commandhistory/.zsh_history

β€ŽDockerfileβ€Ž

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,14 @@ COPY --chown=${USERNAME}:${USERNAME} known_hosts /home/${USERNAME}/.ssh/known_ho
4949
# Non Root User
5050
USER ${USERNAME}
5151
WORKDIR /home/${USERNAME}
52+
ENV PATH="/home/${USERNAME}/.local/bin:${PATH}"
5253

53-
# Oh-My-Zsh user config
54+
# Starship user config
5455
RUN 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
5758
COPY --chown=${USERNAME}:${USERNAME} .zshrc .zshrc
59+
COPY --chown=${USERNAME}:${USERNAME} starship.toml /home/${USERNAME}/.config/starship.toml
5860

5961
ENTRYPOINT [ "/usr/bin/zsh" ]
6062

β€Žstarship.tomlβ€Ž

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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

0 commit comments

Comments
Β (0)