Skip to content

Commit

Permalink
Merge pull request #7 from windpioneers/enh/improve-terminal
Browse files Browse the repository at this point in the history
Add improved terminal annotation via zsh spaceship
  • Loading branch information
sindhupavanimovva authored Aug 23, 2022
2 parents e5335a3 + f673b61 commit 14760a6
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 0 deletions.
62 changes: 62 additions & 0 deletions .zshrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@

# OH MY ZSH

# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh

ZSH_THEME="spaceship"

SPACESHIP_PROMPT_ORDER=(
exec_time
node
dir
git
char
)

SPACESHIP_PROMPT_FIRST_PREFIX_SHOW="true"
SPACESHIP_PROMPT_ADD_NEWLINE="false"
SPACESHIP_PROMPT_SEPARATE_LINE="false"
SPACESHIP_CHAR_SYMBOL="$ "
SPACESHIP_CHAR_COLOR_SUCCESS="white"
SPACESHIP_USER_SHOW="never"
SPACESHIP_USER_PREFIX=""
SPACESHIP_USER_COLOR="green"
SPACESHIP_USER_SUFFIX=""
SPACESHIP_HOST_SHOW="never"
SPACESHIP_HOST_PREFIX="@"
SPACESHIP_HOST_SUFFIX=""
SPACESHIP_HOST_COLOR="red"
SPACESHIP_DIR_PREFIX=":"
SPACESHIP_DIR_SUFFIX=""
SPACESHIP_DIR_TRUNC="0"
SPACESHIP_DIR_TRUNC_REPO="true"
SPACESHIP_DIR_COLOR="blue"
SPACESHIP_GIT_PREFIX=" "
SPACESHIP_GIT_BRANCH_PREFIX=""
SPACESHIP_GIT_BRANCH_COLOR="green"
SPACESHIP_PYENV_SYMBOL=""
SPACESHIP_PYENV_PREFIX=""
SPACESHIP_PYENV_SUFFIX=" "
SPACESHIP_PYENV_SYMBOL="py v"
SPACESHIP_PYENV_COLOR="magenta"
SPACESHIP_EXEC_TIME_PREFIX="Took "
SPACESHIP_EXEC_TIME_SUFFIX="\n"

# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(
git
git-prompt
history
python
)

source $ZSH/oh-my-zsh.sh


# GIT ALIASES
echo "Spaceship symbols are at https://github.com/spaceship-prompt/spaceship-prompt"
echo "Git aliases are at https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/git"
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,13 @@ RUN if [ "${INSTALL_DEV_TOOLS}" = "true" ]; then \
-a 'bindkey "\$terminfo[kcuu1]" history-substring-search-up' \
-a 'bindkey "\$terminfo[kcud1]" history-substring-search-down' \
; fi

# Install spaceship theme and terminal prompt onto oh-my-zsh
RUN if [ "${INSTALL_DEV_TOOLS}" = "true" ]; then \
git clone https://github.com/spaceship-prompt/spaceship-prompt.git "/home/vscode/.oh-my-zsh/custom/themes/spaceship-prompt" --depth=1 && \
ln -s "/home/vscode/.oh-my-zsh/custom/themes/spaceship-prompt/spaceship.zsh-theme" "/home/vscode/.oh-my-zsh/custom/themes/spaceship.zsh-theme" \
; fi
COPY ./.zshrc /home/vscode

# The non-root user defined in the devcontainer.json file needs write permission to /usr/local/src
# in order for poetry to install git dependencies (this is where it clones them).
Expand Down

0 comments on commit 14760a6

Please sign in to comment.