Skip to content

Commit

Permalink
add prezto+notmux
Browse files Browse the repository at this point in the history
  • Loading branch information
romkatv committed Nov 30, 2021
1 parent 51c826f commit 13b7056
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 0 deletions.
21 changes: 21 additions & 0 deletions configs/prezto+notmux/setup
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/usr/bin/env zsh

emulate -L zsh -o err_return -o extended_glob

cp -r -- ${ZSH_SCRIPT:h}/skel/*(D) ~/

git clone -q --depth=1 --recursive --shallow-submodules \
https://github.com/sorin-ionescu/prezto.git ~/.zprezto &>/dev/null

<~/.zprezto/runcoms/zprofile >>~/.zshrc
<~/.zprezto/runcoms/zshrc >>~/.zshrc
<~/.zprezto/runcoms/zlogin >>~/.zlogin

() {
local f
for f in ~/.zprezto/**/{*.zsh,*.zsh-theme,functions/*}(.); do
zcompile -R -- "$f".zwc "$f" 2>/dev/null || true
done
}

make -s -C ~/.zprezto/modules/prompt/external/powerlevel10k pkg
6 changes: 6 additions & 0 deletions configs/prezto+notmux/skel/.p10k.zsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
POWERLEVEL9K_MODE=ascii
POWERLEVEL9K_DISABLE_HOT_RELOAD=true
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(dir vcs)
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=()
POWERLEVEL9K_VCS_MAX_SYNC_LATENCY_SECONDS=0.003
POWERLEVEL9K_INSTANT_PROMPT=quiet
14 changes: 14 additions & 0 deletions configs/prezto+notmux/skel/.tmux.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
unbind -a
set -g prefix None
set -g prefix2 None
set -g escape-time 0
set -g status off
set -g set-titles on
set -g set-titles-string "#T"
set -g history-limit 0
set -g focus-events on
set -g message-limit 0
set -g assume-paste-time 0
set -g default-terminal "screen-256color"
set -s set-clipboard on
set -as terminal-overrides ',*:Ms=\E]52;%p1%s;%p2%s\007'
3 changes: 3 additions & 0 deletions configs/prezto+notmux/skel/.zpreztorc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
zstyle ':prezto:*:*' color 'yes'
zstyle ':prezto:load' pmodule 'completion' 'autosuggestions' 'syntax-highlighting' 'prompt'
zstyle ':prezto:module:prompt' theme 'powerlevel10k'
1 change: 1 addition & 0 deletions configs/prezto+notmux/skel/.zshenv
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
setopt no_global_rcs
6 changes: 6 additions & 0 deletions configs/prezto+notmux/skel/.zshrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
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

ZSH_AUTOSUGGEST_MANUAL_REBIND=1
source ~/.p10k.zsh

0 comments on commit 13b7056

Please sign in to comment.