-
Notifications
You must be signed in to change notification settings - Fork 0
feat: support quick init on fresh machines #27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,9 @@ | ||
| # ============================================================================ | ||
| # Machine-specific overrides | ||
| # ============================================================================ | ||
| # Add local path additions, work profile toggles, or any other settings | ||
| # Add local path additions, machine-only toggles, or any other settings | ||
| # that apply only to this machine. | ||
| # | ||
| # Example: | ||
| # export ZSH_WORK_PROFILE=1 # load work/* config on this machine | ||
| # export EDITOR="nvim" | ||
| # path=("/usr/local/custom/bin" $path) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| # ============================================================================ | ||
| # Shared aliases | ||
| # Generated by suitup | ||
| # ============================================================================ | ||
|
|
||
| # utilities | ||
| alias reload-zsh="source ~/.zshrc" | ||
| alias edit-zsh="${EDITOR:-vi} ~/.zshrc" | ||
| alias edit-plugins="${EDITOR:-vi} ~/.config/zsh/shared/plugins.zsh" | ||
| alias edit-aliases="${EDITOR:-vi} ~/.config/zsh/shared/aliases.zsh" | ||
| alias ll="eza -abghlS --color=always --icons=always" | ||
| alias ls="eza -s=name --group-directories-first --color=always --icons=always" | ||
| alias ltree="eza -abghS --icons=always --tree --git-ignore" | ||
| alias cat="bat" | ||
|
|
||
| # git | ||
| alias gco="git checkout" | ||
| alias gph="git push" | ||
| alias gphu='gph -u origin "$(git branch --show-current 2>/dev/null)"' | ||
| alias gcol="git checkout --no-guess" | ||
| alias gpl="git pull --rebase" | ||
| alias gcz="git-cz" | ||
| alias gczn="git-cz -n" | ||
| alias gst="git status --short" | ||
| alias glg="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %Cgreen(%cr) %C(bold blue)<%ae>%Creset%n%s' --abbrev-commit" | ||
| alias gss="git restore --staged ." | ||
| alias resolve-pnpmlock="git checkout --ours pnpm-lock.yaml && git add pnpm-lock.yaml" | ||
|
|
||
| # search | ||
| alias ss="fzf --walker-skip .git,node_modules --preview 'bat -n --color=always {}'" | ||
| alias zx='zoxide query --interactive' | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| # ============================================================================ | ||
| # Native zsh completion | ||
| # Generated by suitup | ||
| # ============================================================================ | ||
|
|
||
| autoload -Uz compinit | ||
|
|
||
| _zsh_compdump_file="${XDG_CACHE_HOME:-$HOME/.cache}/zsh/.zcompdump" | ||
| typeset -g _zsh_completion_cache_mode='refresh' | ||
|
|
||
| if [[ -s "$_zsh_compdump_file" && -n "$(command find "$_zsh_compdump_file" -mtime -7 -print 2>/dev/null)" ]]; then | ||
| _zsh_completion_cache_mode='cache-hit' | ||
| compinit -C -d "$_zsh_compdump_file" | ||
| else | ||
| compinit -d "$_zsh_compdump_file" | ||
| fi | ||
|
|
||
| bindkey -M emacs '^I' expand-or-complete | ||
| bindkey -M viins '^I' expand-or-complete | ||
| bindkey -M vicmd '^I' expand-or-complete |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| # ============================================================================ | ||
| # Interactive shell highlighting | ||
| # Generated by suitup | ||
| # ============================================================================ | ||
|
|
||
| typeset -gA ZSH_HIGHLIGHT_STYLES | ||
|
|
||
| ZSH_HIGHLIGHT_STYLES[arg0]='fg=green,bold' | ||
| ZSH_HIGHLIGHT_STYLES[single-hyphen-option]='fg=cyan' | ||
| ZSH_HIGHLIGHT_STYLES[double-hyphen-option]='fg=cyan' | ||
| ZSH_HIGHLIGHT_STYLES[path]='fg=blue,underline' | ||
| ZSH_HIGHLIGHT_STYLES[globbing]='fg=magenta' | ||
| ZSH_HIGHLIGHT_STYLES[history-expansion]='fg=blue,bold' | ||
| ZSH_HIGHLIGHT_STYLES[single-quoted-argument]='fg=yellow' | ||
| ZSH_HIGHLIGHT_STYLES[double-quoted-argument]='fg=yellow' | ||
| ZSH_HIGHLIGHT_STYLES[dollar-double-quoted-argument]='fg=magenta' | ||
| ZSH_HIGHLIGHT_STYLES[command-substitution-delimiter]='fg=magenta,bold' | ||
| ZSH_HIGHLIGHT_STYLES[process-substitution-delimiter]='fg=magenta,bold' | ||
| ZSH_HIGHLIGHT_STYLES[redirection]='fg=red,bold' | ||
| ZSH_HIGHLIGHT_STYLES[reserved-word]='fg=yellow,bold' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| # ============================================================================ | ||
| # zinit plugin declarations | ||
| # Generated by suitup | ||
| # ============================================================================ | ||
|
|
||
| zinit ice wait"0" lucid atload'_zsh_autosuggest_bind_widgets' | ||
| zinit light 'zsh-users/zsh-autosuggestions' | ||
|
|
||
| zinit ice wait"0" lucid | ||
| zinit light 'zsh-users/zsh-syntax-highlighting' | ||
|
|
||
| zinit ice depth"1" | ||
| zinit light romkatv/powerlevel10k |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.