Skip to content
This repository was archived by the owner on Mar 9, 2022. It is now read-only.

Commit

Permalink
build(devcontainer): changed zsh configs
Browse files Browse the repository at this point in the history
  • Loading branch information
victor-pogor committed Nov 30, 2020
1 parent 359f34a commit 6985224
Show file tree
Hide file tree
Showing 6 changed files with 2,222 additions and 582 deletions.
1,668 changes: 1,668 additions & 0 deletions .devcontainer/.p10k.zsh

Large diffs are not rendered by default.

15 changes: 12 additions & 3 deletions .devcontainer/.zshrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi

# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH

Expand Down Expand Up @@ -68,7 +75,6 @@ ZSH_THEME="powerlevel10k/powerlevel10k"
# Custom plugins may be added to $ZSH_CUSTOM/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
# plugins=(git ssh-agent gpg-agent)
plugins=(git)

source $ZSH/oh-my-zsh.sh
Expand Down Expand Up @@ -98,7 +104,10 @@ source $ZSH/oh-my-zsh.sh
# Example aliases
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"
source $HOME/.purepower

# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
source $HOME/.zsh-syntax-highlighting/zsh-syntax-highlighting.zsh

# Disable Powerlevel10k configuration wizard
POWERLEVEL9K_DISABLE_CONFIGURATION_WIZARD=true
POWERLEVEL9K_DISABLE_CONFIGURATION_WIZARD=true
5 changes: 4 additions & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ RUN apt update && \
locales \
zsh \
wget \
powerline \
fonts-powerline \
software-properties-common \
# set up locale
Expand Down Expand Up @@ -57,8 +58,10 @@ RUN wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -
# Install powerlevel10k theme
RUN git clone https://github.com/romkatv/powerlevel10k.git ~/.oh-my-zsh/custom/themes/powerlevel10k

RUN cd $HOME && curl -fsSLO https://raw.githubusercontent.com/romkatv/dotfiles-public/master/.purepower
# Install syntax highlighting
RUN git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $HOME/.zsh-syntax-highlighting --depth 1

# Add .zsh configuration
ADD .p10k.zsh $HOME
ADD .zshrc $HOME
ADD .zprofile $HOME
3 changes: 3 additions & 0 deletions exampleSite/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ enableGitInfo = true
# 是否使用 emoji 代码
enableEmoji = true

# Ignore get JSON errors.
ignoreErrors = ["error-remote-getjson"]

[languages]
[languages.en]
weight = 1
Expand Down
Loading

0 comments on commit 6985224

Please sign in to comment.