time to finaly setup a proper digtial home/workbench...
This commit is contained in:
parent
a7820271be
commit
cb6408fb8b
1684
rcfiles/p10k.zsh
Normal file
1684
rcfiles/p10k.zsh
Normal file
File diff suppressed because it is too large
Load Diff
48
rcfiles/zshrc
Normal file
48
rcfiles/zshrc
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
# 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
|
||||||
|
|
||||||
|
# Path to your oh-my-zsh installation.
|
||||||
|
export ZSH=~/.oh-my-zsh
|
||||||
|
|
||||||
|
# Set name of the theme to load --- if set to "random", it will
|
||||||
|
# load a random theme each time oh-my-zsh is loaded, in which case,
|
||||||
|
# to know which specific one was loaded, run: echo $RANDOM_THEME
|
||||||
|
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
|
||||||
|
#ZSH_THEME="robbyrussell"
|
||||||
|
#ZSH_THEME="agnoster"
|
||||||
|
ZSH_THEME="powerlevel10k/powerlevel10k"
|
||||||
|
|
||||||
|
# Uncomment the following line to enable command auto-correction.
|
||||||
|
ENABLE_CORRECTION="true"
|
||||||
|
|
||||||
|
# Uncomment the following line to display red dots whilst waiting for completion.
|
||||||
|
COMPLETION_WAITING_DOTS="true"
|
||||||
|
|
||||||
|
# Uncomment the following line if you want to disable marking untracked files
|
||||||
|
# under VCS as dirty. This makes repository status check for large repositories
|
||||||
|
# much, much faster.
|
||||||
|
DISABLE_UNTRACKED_FILES_DIRTY="true"
|
||||||
|
|
||||||
|
# Which plugins would you like to load?
|
||||||
|
# Standard plugins can be found in $ZSH/plugins/
|
||||||
|
# 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=(
|
||||||
|
vi-mode
|
||||||
|
git
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
# Would you like to use another custom folder than $ZSH/custom?
|
||||||
|
# ZSH_CUSTOM=/path/to/new-custom-folder
|
||||||
|
|
||||||
|
source $ZSH/oh-my-zsh.sh
|
||||||
|
source ~/Nextcloud/dotfiles-git/rcfiles/zshrc-include-cnw.sh
|
||||||
|
|
||||||
|
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
|
||||||
|
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|
75
rcfiles/zshrc-include-cnw.sh
Normal file
75
rcfiles/zshrc-include-cnw.sh
Normal file
@ -0,0 +1,75 @@
|
|||||||
|
#Customized zshrc
|
||||||
|
# CNW
|
||||||
|
# Last updated 03/01/2021
|
||||||
|
# merging my own bits and some stuff from oh-my-zsh, powerline etc
|
||||||
|
|
||||||
|
# Set personal aliases, overriding those provided by oh-my-zsh libs,
|
||||||
|
# plugins, and themes. Aliases can be placed here, though oh-my-zsh
|
||||||
|
# users are encouraged to define aliases within the ZSH_CUSTOM folder.
|
||||||
|
# For a full list of active aliases, run `alias`.
|
||||||
|
#
|
||||||
|
|
||||||
|
source ~/Nextcloud/dotfiles-git/rcfiles/alias.sh
|
||||||
|
|
||||||
|
###############
|
||||||
|
#My path is where I walk, not where you walk
|
||||||
|
###############
|
||||||
|
|
||||||
|
PATHDIRS=(
|
||||||
|
~/dotfiles-git/bin
|
||||||
|
~/dotfiles-git/3rdparty/git-scripts
|
||||||
|
)
|
||||||
|
|
||||||
|
for dir in $PATHDIRS; do
|
||||||
|
if [ -d $dir ]; then
|
||||||
|
path+=$dir
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
###############
|
||||||
|
# Creature comforts
|
||||||
|
###############
|
||||||
|
|
||||||
|
#vi 24x7 yo, this isn't a holiday inn (last night, it is now)
|
||||||
|
#
|
||||||
|
bindkey -v
|
||||||
|
set -o vi
|
||||||
|
|
||||||
|
if [[ -n $SSH_CONNECTION ]]; then
|
||||||
|
export EDITOR='vim'
|
||||||
|
else
|
||||||
|
export EDITOR='vim'
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
HISTSIZE=5000 #How many lines of history to keep in memory
|
||||||
|
HIST_STAMPS="mm/dd/yyyy"
|
||||||
|
HISTFILE=~/.zsh_history #Where to save history to disk
|
||||||
|
SAVEHIST=5000000 #Number of history entries to save to disk
|
||||||
|
HISTDUP=erase #Erase duplicates in the history file
|
||||||
|
setopt appendhistory #Append history to the history file (no overwriting)
|
||||||
|
setopt incappendhistory #Immediately append to the history file, not just when a term is killed
|
||||||
|
|
||||||
|
ENABLE_CORRECTION="true"
|
||||||
|
COMPLETION_WAITING_DOTS="true"
|
||||||
|
DISABLE_UNTRACKED_FILES_DIRTY="true"
|
||||||
|
export LANG=en_US.UTF-8
|
||||||
|
|
||||||
|
#####################################################
|
||||||
|
#Personal host variables
|
||||||
|
#####################################################
|
||||||
|
#Eventually we'll move to ldap/no shared accounts/forced sudo. Blech. Corporate tyrany!
|
||||||
|
#For now, the easy way. HAH!
|
||||||
|
CON_USER="charlesnw"
|
||||||
|
INBAND_USER="charlesnw"
|
||||||
|
PERSONAL_OOB_USER="root"
|
||||||
|
PERSONAL_INBAND_USER="root"
|
||||||
|
#####################################################
|
||||||
|
|
||||||
|
source ~/Nextcloud/dotfiles-git/rcfiles/MiscEnvVars
|
||||||
|
|
||||||
|
|
||||||
|
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|
||||||
|
|
||||||
|
#DO NOT Share history across terminals
|
||||||
|
unsetopt sharehistory
|
||||||
|
setopt no_share_history
|
Loading…
Reference in New Issue
Block a user