Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions .github/ISSUE_TEMPLATE/request-to-add-zshrc.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->

- [URL](#url)
- [Username](#username)
- [Zshrc body](#zshrc-body)

<!-- END doctoc generated TOC please keep comment here to allow auto update -->

---
name: Request to add zshrc to the zplugin-configs repo

name: Request to add zshrc to the playground repo
about: Use this to submit a zshrc to the repo
title: ''
labels: ''
Expand Down
10 changes: 4 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@ FROM ubuntu:impish-20211102

# Update && install common dependencies
ARG DEBIAN_FRONTEND=noninteractive
RUN apt update && \
apt install -yq \
RUN apt update && apt install -yq \
ncurses-dev man telnet unzip zsh git subversion curl make sudo locales \
autoconf automake python golang-go \
vim htop
autoconf automake python3 golang-go vim htop

# Set the locale
RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && locale-gen
Expand All @@ -22,7 +20,7 @@ RUN adduser --disabled-password --gecos '' user && \
USER user

# Install
RUN sh -c "$(curl -fsSL https://raw.githubusercontent.com/ss-o/zi-src/main/lib/sh/install.sh)"
RUN bash <(curl -fsSL https://raw.githubusercontent.com/z-shell/zi-src/main/lib/sh/install.sh)

# Copy configs into home directory
ARG FOLDER
Expand All @@ -43,6 +41,6 @@ RUN if [ -f /home/user/bootstrap.sh ]; then \
# Install all plugins
ARG TERM
ENV TERM ${TERM}
RUN SHELL=/bin/zsh zsh -i -c -- 'zi module build; @zi-scheduler burst || true '
RUN SHELL=/bin/zsh zsh -i -c -- '@zi-scheduler burst || true '

CMD zsh -i -l
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#Let Atom highlight this: -*- shell-script -*-

# According to the Zsh Plugin Standard:
# http://zdharma.org/Zsh-100-Commits-Club/Zsh-Plugin-Standard.html
# https://github.com/z-shell/zi/wiki/Zsh-Plugin-Standard

0="${${ZERO:-${0:#$ZSH_ARGZERO}}:-${(%):-%N}}"
0="${${(M)0:#/*}:-$PWD/$0}"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
setopt extendedglob local_options
autoload -Uz compinit
local zcompf="${ZI[ZCOMPDUMP_PATH]:-${ZDOTDIR:-$HOME}/.zcompdump}"

# use a separate file to determine when to regenerate, as compinit doesn't always need to modify the compdump
local zcompf_a="${zcompf}.augur"

if [[ -e "$zcompf_a" && -f "$zcompf_a"(#qN.mh+24) ]]; then
compinit -d "$zcompf"
touch "$zcompf_a"
else
compinit -C -d "$zcompf"
fi

# if zcompdump exists (and is non-zero), and is older than the .zwc file, then regenerate
if [[ -s "$zcompf" && (! -s "${zcompf}.zwc" || "$zcompf" -nt "${zcompf}.zwc") ]]; then
# since file is mapped, it might be mapped right now (current shells), so rename it then make a new one
[[ -e "$zcompf.zwc" ]] && mv -f "$zcompf.zwc" "$zcompf.zwc.old"
# compile it mapped, so multiple shells can share it (total mem reduction)
# run in background
{ zcompile -M "$zcompf" && command rm -f "$zcompf.zwc.old" }&!
fi

This file was deleted.

Loading