inital commit

This commit is contained in:
quackerd 2021-02-20 23:37:27 -05:00
parent 364d1a59a8
commit 95fb76e0ea
9 changed files with 1656 additions and 0 deletions

15
.gitmodules vendored Normal file
View File

@ -0,0 +1,15 @@
[submodule "modules/powerlevel10k"]
path = modules/powerlevel10k
url = https://github.com/romkatv/powerlevel10k
[submodule "modules/zsh-autosuggestions"]
path = modules/zsh-autosuggestions
url = https://github.com/zsh-users/zsh-autosuggestions
[submodule "modules/zsh-syntax-highlighting"]
path = modules/zsh-syntax-highlighting
url = https://github.com/zsh-users/zsh-syntax-highlighting
[submodule "modules/ohmyzsh"]
path = modules/ohmyzsh
url = https://github.com/ohmyzsh/ohmyzsh
[submodule "modules/zsh-completions"]
path = modules/zsh-completions
url = https://github.com/zsh-users/zsh-completions

25
libozsh.zsh Normal file
View File

@ -0,0 +1,25 @@
export OZSH_HOME="$HOME/.ozsh"
function ozsh_load {
if [ $# -ne 2 ]; then
echo "Invalid ozsh_load number of arguments: $#"
return
fi
if [ "$1" = 'plugin' ]; then
source "$OZSH_HOME/modules/$2/$2.plugin.zsh"
elif [ "$1" = 'theme' ]; then
source "$OZSH_HOME/modules/$2/$2.zsh-theme"
elif [ "$1" = 'plugin_omz' ]; then
source "$OZSH_HOME/modules/ohmyzsh/plugins/$2/$2.plugin.zsh"
else
echo "Invalid ozsh_load arguments: $@"
fi
}
function ozsh_update {
git -C $OZSH_HOME stash
git -C $OZSH_HOME pull
git -C $OZSH_HOME stash pop
git -C $OZSH_HOME submodule update --recursive --remote
}

1
modules/ohmyzsh Submodule

@ -0,0 +1 @@
Subproject commit f21e646ce6c09198f7f625c597f08af49551fdb0

1
modules/powerlevel10k Submodule

@ -0,0 +1 @@
Subproject commit b816abfed0e8785d8bc2e47987cc40f6bcd4bc29

@ -0,0 +1 @@
Subproject commit ae315ded4dba10685dbbafbfa2ff3c1aefeb490d

@ -0,0 +1 @@
Subproject commit c7baec49d3e044121f7a37b65a84461ef8dac2de

@ -0,0 +1 @@
Subproject commit 5eb494852ebb99cf5c2c2bffee6b74e6f1bf38d0

29
ozsh.zsh Normal file
View File

@ -0,0 +1,29 @@
export OZSH_HOME="$HOME/.ozsh"
source $OZSH_HOME/libozsh.zsh
# link the p10k.zsh file
if [ ! -f "$HOME/.p10k.zsh" ]; then
ln -s "$OZSH_HOME/p10k.zsh" $HOME/.p10k.zsh
fi
# 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
# load theme
ozsh_load theme powerlevel10k
# load plugins
ozsh_load plugin zsh-autosuggestions
ozsh_load plugin zsh-syntax-highlighting
ozsh_load plugin_omz gpg-agent
# optional settings
export PATH="$PATH:/usr/local/bin"
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh

1582
p10k.zsh Normal file

File diff suppressed because it is too large Load Diff