Merge pull request #1 from amulbrook/main

Add configuration for ZSH
This commit is contained in:
Zombie Coder 2023-01-26 18:53:56 -06:00 committed by GitHub
commit 5128374241
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 1800 additions and 0 deletions

2
.gitignore vendored
View file

@ -1,2 +1,4 @@
*.swp *.swp
*.bak
*~

3
.gitmodules vendored
View file

@ -13,3 +13,6 @@
[submodule "vim/pack/def/start/editorconfig"] [submodule "vim/pack/def/start/editorconfig"]
path = vim/pack/def/start/editorconfig path = vim/pack/def/start/editorconfig
url = https://github.com/editorconfig/editorconfig-vim.git url = https://github.com/editorconfig/editorconfig-vim.git
[submodule "zsh_files/powerlevel10k"]
path = zsh_files/powerlevel10k
url = https://github.com/romkatv/powerlevel10k.git

View file

@ -11,6 +11,9 @@
- ~/.fonts - ~/.fonts
- link: - link:
~/.zshrc: zshrc
~/.zsh_files: zsh_files
~/.p10k.zsh: p10k.zsh
~/.bashrc: bashrc ~/.bashrc: bashrc
~/.profile: profile ~/.profile: profile
~/.inputrc: inputrc ~/.inputrc: inputrc
@ -25,6 +28,7 @@
relink: true relink: true
- shell: - shell:
- [git config --global alias.tree 'log --oneline --graph --decorate --all', Adding git alias for tree view]
- [git submodule update --init --recursive, Installing submodules] - [git submodule update --init --recursive, Installing submodules]
- [fc-cache -f -v, Updating fonts] - [fc-cache -f -v, Updating fonts]

1761
p10k.zsh Normal file

File diff suppressed because it is too large Load diff

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

29
zshrc Normal file
View file

@ -0,0 +1,29 @@
# 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
# Lines configured by zsh-newuser-install
HISTFILE=~/.histfile
HISTSIZE=5000
SAVEHIST=5000
setopt nomatch
unsetopt beep
bindkey -e
# End of lines configured by zsh-newuser-install
# The following lines were added by compinstall
zstyle :compinstall filename '/home/amulbrook/.zshrc'
autoload -Uz compinit
compinit
# End of lines added by compinstall
source ~/.zsh_files/powerlevel10k/powerlevel10k.zsh-theme
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
alias ls='ls --color=auto'