mirror of
https://github.com/m-housh/dotfiles.git
synced 2026-02-14 06:12:34 +00:00
Initial commit
This commit is contained in:
2176
zsh/.config/zsh/.zcompdump
Normal file
2176
zsh/.config/zsh/.zcompdump
Normal file
File diff suppressed because it is too large
Load Diff
21
zsh/.config/zsh/.zshrc
Normal file
21
zsh/.config/zsh/.zshrc
Normal file
@@ -0,0 +1,21 @@
|
||||
|
||||
# configure keeping history of commands
|
||||
|
||||
HISTSIZE=200
|
||||
|
||||
# TODO: move to $ZDOTDIR/.zsh_history
|
||||
HISTFILE=~/.zsh_history
|
||||
setopt appendhistory
|
||||
setopt sharehistory
|
||||
setopt incappendhistory
|
||||
|
||||
# Allow useful scripts in ~/.bin to be in the search path.
|
||||
export PATH=~/.bin:$PATH
|
||||
|
||||
# Load Useful Functions
|
||||
source "$ZDOTDIR/zsh-functions"
|
||||
|
||||
zsh_add_file "zsh-aliases"
|
||||
zsh_add_file "zsh-zinit"
|
||||
|
||||
export EDITOR="nvim"
|
||||
9
zsh/.config/zsh/zsh-aliases
Normal file
9
zsh/.config/zsh/zsh-aliases
Normal file
@@ -0,0 +1,9 @@
|
||||
# configure aliases
|
||||
#alias zshconfig="vim ~/.zshrc"
|
||||
#alias reloadzsh="source ~/.zshrc"
|
||||
alias mkcd() { mkdir $1 && cd $1 }
|
||||
alias l() { ls -lah "$@" }
|
||||
|
||||
# editor
|
||||
alias vim() { nvim "$@" }
|
||||
|
||||
4
zsh/.config/zsh/zsh-functions
Normal file
4
zsh/.config/zsh/zsh-functions
Normal file
@@ -0,0 +1,4 @@
|
||||
# Function to source files if they exist
|
||||
function zsh_add_file() {
|
||||
[ -f "$ZDOTDIR/$1" ] && source "$ZDOTDIR/$1"
|
||||
}
|
||||
36
zsh/.config/zsh/zsh-zinit
Normal file
36
zsh/.config/zsh/zsh-zinit
Normal file
@@ -0,0 +1,36 @@
|
||||
|
||||
### Added by Zinit's installer
|
||||
if [[ ! -f $HOME/.zinit/bin/zinit.zsh ]]; then
|
||||
print -P "%F{33}▓▒░ %F{220}Installing %F{33}DHARMA%F{220} Initiative Plugin Manager (%F{33}zdharma/zinit%F{220})…%f"
|
||||
command mkdir -p "$HOME/.zinit" && command chmod g-rwX "$HOME/.zinit"
|
||||
command git clone https://github.com/zdharma/zinit "$HOME/.zinit/bin" && \
|
||||
print -P "%F{33}▓▒░ %F{34}Installation successful.%f%b" || \
|
||||
print -P "%F{160}▓▒░ The clone has failed.%f%b"
|
||||
fi
|
||||
|
||||
source "$HOME/.zinit/bin/zinit.zsh"
|
||||
autoload -Uz _zinit
|
||||
(( ${+_comps} )) && _comps[zinit]=_zinit
|
||||
|
||||
# Load a few important annexes, without Turbo
|
||||
# (this is currently required for annexes)
|
||||
zinit light-mode for \
|
||||
zinit-zsh/z-a-rust \
|
||||
zinit-zsh/z-a-as-monitor \
|
||||
zinit-zsh/z-a-patch-dl \
|
||||
zinit-zsh/z-a-bin-gem-node
|
||||
|
||||
### End of Zinit's installer chunk
|
||||
|
||||
# configure pure-prompt
|
||||
zinit ice compile '(pure|async).zsh' pick'async.zsh' src'pure.zsh'
|
||||
zinit light sindresorhus/pure
|
||||
|
||||
|
||||
zinit wait lucid for \
|
||||
atinit"ZINIT[COMPINIT_OPTS]=-C; zicompinit; zicdreplay" \
|
||||
zdharma/fast-syntax-highlighting \
|
||||
blockf \
|
||||
zsh-users/zsh-completions \
|
||||
atload"!_zsh_autosuggest_start" \
|
||||
zsh-users/zsh-autosuggestions
|
||||
2
zsh/.zshrc
Normal file
2
zsh/.zshrc
Normal file
@@ -0,0 +1,2 @@
|
||||
export ZDOTDIR=$HOME/.config/zsh
|
||||
source "$HOME/.config/zsh/.zshrc"
|
||||
Reference in New Issue
Block a user