Compare commits
10
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
92372953de | ||
|
|
b238f54ca3 | ||
|
|
2ec3c0b116 | ||
|
|
3d97d39bdc | ||
|
|
9ed04e7eae | ||
|
|
c5bb6055bf | ||
|
|
fe7b00ac51 | ||
|
|
801449db29 | ||
|
|
833ef8f70e | ||
|
|
70a2f649be |
No files matched your search
@@ -0,0 +1,4 @@
|
||||
enable-rpc = true
|
||||
rpc-listen-all = true
|
||||
dir = ~/Downloads
|
||||
# rpc-secret = your_password
|
||||
@@ -0,0 +1,2 @@
|
||||
[engine]
|
||||
compose_warning_logs = false
|
||||
@@ -0,0 +1,3 @@
|
||||
font-family = "JetBrainsMono Nerd Font"
|
||||
theme = "SpaceGray Eighties"
|
||||
cursor-style = bar
|
||||
@@ -3,3 +3,10 @@
|
||||
[user]
|
||||
name = Tri Vo Khac
|
||||
email = 33442340+vokhactri@users.noreply.github.com
|
||||
[filter "lfs"]
|
||||
required = true
|
||||
clean = git-lfs clean -- %f
|
||||
smudge = git-lfs smudge -- %f
|
||||
process = git-lfs filter-process
|
||||
[push]
|
||||
autoSetupRemote = true
|
||||
+17
-17
@@ -1,38 +1,38 @@
|
||||
# install zinit
|
||||
source $ZDOTDIR/zinit.zsh
|
||||
source $ZDOTDIR/zinit
|
||||
|
||||
# load remote plugins
|
||||
zinit wait lucid light-mode for \
|
||||
zinit wait lucid light-mode id-as depth"1" for \
|
||||
wintermi/zsh-brew \
|
||||
hlissner/zsh-autopair \
|
||||
Aloxaf/fzf-tab \
|
||||
atinit"zicompinit; zicdreplay -q" \
|
||||
zdharma-continuum/fast-syntax-highlighting zap-zsh/supercharge \
|
||||
zdharma-continuum/fast-syntax-highlighting \
|
||||
atload"_zsh_autosuggest_start" \
|
||||
zsh-users/zsh-autosuggestions \
|
||||
blockf atpull'zinit creinstall -q .' \
|
||||
zsh-users/zsh-completions
|
||||
zsh-users/zsh-autosuggestions
|
||||
|
||||
# load prompt theme
|
||||
zinit ice as"command" from"gh-r" \
|
||||
zinit ice as"command" from"gh-r" id-as \
|
||||
atclone"./starship init zsh > init.zsh; ./starship completions zsh > _starship" \
|
||||
atpull"%atclone" src"init.zsh"
|
||||
zinit light starship/starship
|
||||
|
||||
# load binaries
|
||||
zinit as"command" wait lucid light-mode from"gh-r" for \
|
||||
extract"!" atload="alias cat=bat" lsd-rs/lsd \
|
||||
extract"!" atload="alias nano=micro" zyedidia/micro \
|
||||
extract"!" cp"autocomplete/bat.zsh -> _bat" atload"alias cat=bat" @sharkdp/bat \
|
||||
extract"!" atclone="cp usr/bin/fastfetch .; rm -rf usr" \
|
||||
zinit as"command" wait lucid light-mode from"gh-r" id-as for \
|
||||
extract"!" lsd-rs/lsd \
|
||||
extract"!" zyedidia/micro \
|
||||
extract"!" cp"autocomplete/bat.zsh -> _bat" @sharkdp/bat \
|
||||
extract"!" pick"usr/bin/fastfetch" \
|
||||
fastfetch-cli/fastfetch \
|
||||
atclone"./zoxide init zsh > init.zsh" atpull"%atclone" src"init.zsh" \
|
||||
ajeetdsouza/zoxide \
|
||||
atclone"./fzf --zsh > init.zsh" atpull="%atclone" src"init.zsh" \
|
||||
junegunn/fzf \
|
||||
atclone"./fnm env --use-on-cd > init.zsh" atpull"%atclone" src"init.zsh" Schniz/fnm
|
||||
atclone"./fnm env --use-on-cd --shell zsh > init.zsh; ./fnm completions --shell zsh > _fnm" atpull"%atclone" src"init.zsh" Schniz/fnm
|
||||
|
||||
# load local snippets
|
||||
source $ZDOTDIR/exports.zsh
|
||||
|
||||
zstyle ':fzf-tab:complete:cd:*' fzf-preview 'lsd -1 --color=always --icon=always $realpath'
|
||||
# load local scripts
|
||||
zinit is-snippet id-as for \
|
||||
$ZDOTDIR/snippets/exports \
|
||||
$ZDOTDIR/snippets/aliases \
|
||||
$ZDOTDIR/snippets/options \
|
||||
$ZDOTDIR/snippets/bin
|
||||
@@ -1,4 +0,0 @@
|
||||
#!/usr/bin/env zsh
|
||||
|
||||
(($+commands[bat])) && alias cat="bat"
|
||||
(($+commands[lsd])) && alias ls="lsd"
|
||||
@@ -0,0 +1,20 @@
|
||||
#!/usr/bin/env zsh
|
||||
|
||||
# Modern alternatives to traditional commands
|
||||
alias cat='bat'
|
||||
alias ls='lsd -A'
|
||||
alias la='lsd -lA'
|
||||
alias tree='lsd --tree'
|
||||
alias nano='micro'
|
||||
alias fetch='fastfetch'
|
||||
|
||||
# Git shortcuts
|
||||
alias g='git'
|
||||
alias gs='git status -sb'
|
||||
alias ga='git add'
|
||||
alias gc='git commit'
|
||||
alias gp='git push'
|
||||
alias gl='git pull'
|
||||
|
||||
# Docker shortcuts
|
||||
alias docker='podman'
|
||||
@@ -0,0 +1,37 @@
|
||||
#!/usr/bin/env zsh
|
||||
|
||||
# Add GNU tools to PATH without 'g' prefix
|
||||
local gnu_tools=(
|
||||
"coreutils"
|
||||
"findutils"
|
||||
"gnu-tar"
|
||||
"gnu-sed"
|
||||
"gawk"
|
||||
"gnu-indent"
|
||||
"grep"
|
||||
)
|
||||
|
||||
for tool in $gnu_tools; do
|
||||
local gnubin="/opt/homebrew/opt/$tool/libexec/gnubin"
|
||||
if [ -d "$gnubin" ]; then
|
||||
case ":$PATH:" in
|
||||
*":$gnubin:"*) ;;
|
||||
*) export PATH="$gnubin:$PATH" ;;
|
||||
esac
|
||||
fi
|
||||
done
|
||||
|
||||
# Add other bins separately since they have a different path structure
|
||||
local bin_paths=(
|
||||
"$HOME/.local/bin"
|
||||
"/opt/homebrew/opt/gnu-getopt/bin"
|
||||
)
|
||||
for bin_path in $bin_paths; do
|
||||
if [ -d "$bin_path" ]; then
|
||||
case ":$PATH:" in
|
||||
*":$bin_path:"*) ;;
|
||||
*) export PATH="$bin_path:$PATH" ;;
|
||||
esac
|
||||
fi
|
||||
done
|
||||
|
||||
@@ -1,13 +1,11 @@
|
||||
#!/usr/bin/env zsh
|
||||
|
||||
HISTSIZE=1000000
|
||||
SAVEHIST=1000000
|
||||
|
||||
export MANWIDTH=999
|
||||
|
||||
export EDITOR="micro"
|
||||
export PAGE="bat"
|
||||
export PAGER="bat"
|
||||
export VISUAL="micro"
|
||||
export SUDO_EDITOR="micro"
|
||||
export COMPANY_DIR="$HOME/Documents/work/company/"
|
||||
|
||||
export STARSHIP_CONFIG="$XDG_CONFIG_HOME"/starship/starship.toml
|
||||
@@ -0,0 +1,30 @@
|
||||
#!/usr/bin/env zsh
|
||||
|
||||
unsetopt BEEP
|
||||
setopt AUTO_CD
|
||||
setopt GLOB_DOTS
|
||||
setopt NOMATCH
|
||||
setopt MENU_COMPLETE
|
||||
setopt EXTENDED_GLOB
|
||||
setopt INTERACTIVE_COMMENTS
|
||||
setopt APPEND_HISTORY
|
||||
setopt PUSHD_IGNORE_DUPS
|
||||
|
||||
setopt BANG_HIST # Treat the '!' character specially during expansion.
|
||||
setopt EXTENDED_HISTORY # Write the history file in the ":start:elapsed;command" format.
|
||||
setopt INC_APPEND_HISTORY # Write to the history file immediately, not when the shell exits.
|
||||
setopt SHARE_HISTORY # Share history between all sessions.
|
||||
setopt HIST_EXPIRE_DUPS_FIRST # Expire duplicate entries first when trimming history.
|
||||
setopt HIST_IGNORE_DUPS # Don't record an entry that was just recorded again.
|
||||
setopt HIST_IGNORE_ALL_DUPS # Delete old recorded entry if new entry is a duplicate.
|
||||
setopt HIST_FIND_NO_DUPS # Do not display a line previously found.
|
||||
setopt HIST_IGNORE_SPACE # Don't record an entry starting with a space.
|
||||
setopt HIST_SAVE_NO_DUPS # Don't write duplicate entries in the history file.
|
||||
setopt HIST_REDUCE_BLANKS # Remove superfluous blanks before recording entry.
|
||||
setopt HIST_VERIFY # Don't execute immediately upon history expansion.
|
||||
|
||||
HISTFILE="${ZDOTDIR:-$HOME}/.zsh_history"
|
||||
HISTSIZE=5000000
|
||||
SAVEHIST=5000000
|
||||
|
||||
zstyle ':fzf-tab:complete:cd:*' fzf-preview 'lsd -1 --color=always --icon=always $realpath'
|
||||
@@ -3,4 +3,10 @@
|
||||
ZINIT_HOME="${XDG_DATA_HOME:-${HOME}/.local/share}/zinit/zinit.git"
|
||||
[ ! -d $ZINIT_HOME ] && mkdir -p "$(dirname $ZINIT_HOME)"
|
||||
[ ! -d $ZINIT_HOME/.git ] && git clone https://github.com/zdharma-continuum/zinit.git "$ZINIT_HOME"
|
||||
|
||||
# not to use aliases: zi or zini
|
||||
declare -A ZINIT
|
||||
ZINIT[NO_ALIASES]=1
|
||||
ZINIT[LIST_COMMAND]='lsd --tree'
|
||||
|
||||
source "${ZINIT_HOME}/zinit.zsh"
|
||||
Reference in new issue
Block a user