Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 1b7facd068 | |||
| c4c2885267 | |||
| 5bdd7499ce | |||
| 7833cc3a00 | |||
| 997244e054 |
@@ -1,5 +0,0 @@
|
||||
# Disable global autocomplete
|
||||
skip_global_compinit=1
|
||||
|
||||
# Set ZFS Directory
|
||||
ZDOTDIR=~/.config/zsh
|
||||
@@ -1,43 +0,0 @@
|
||||
# History
|
||||
export HISTFILE=$XDG_CACHE_HOME/zsh/.zsh_history
|
||||
export HISTSIZE=10000
|
||||
export SAVEHIST=10000
|
||||
setopt HIST_IGNORE_ALL_DUPS
|
||||
setopt HIST_FIND_NO_DUPS
|
||||
|
||||
# Bitwarden ssh agent
|
||||
export SSH_AUTH_SOCK=/home/lumen/.bitwarden-ssh-agent.sock
|
||||
|
||||
# Editors
|
||||
export EDITOR="nvim"
|
||||
export VISUAL="nvim"
|
||||
|
||||
# Disable Global autocomplete
|
||||
export skip_global_compinit=1
|
||||
|
||||
# Autocomplete
|
||||
source $ZDOTDIR/modules/completion.zsh
|
||||
|
||||
# Allow CTRL+Arrow move
|
||||
bindkey "^[[1;5C" forward-word
|
||||
bindkey "^[[1;5D" backward-word
|
||||
|
||||
# Prompt
|
||||
prompt_builder() {
|
||||
local EXITCODE=$?
|
||||
if [ $UID = 0 ] && [ $EXITCODE = 0 ]; then
|
||||
PROMPT=$'%F{red}%~ %B%F{red}#%F{red}>%f%b '
|
||||
RPROMPT='%F{white}%? %F{red}%n'
|
||||
elif [ $UID = 0 ]; then
|
||||
PROMPT=$'%F{red}%~ %B%F{red}#%F{red}>%f%b '
|
||||
RPROMPT=$'%F{red}%? %F{red}%n'
|
||||
elif [ $UID != 0 ] && [ $EXITCODE = 0 ]; then
|
||||
PROMPT=$'%F{white}%~ %B%F{blue}>%f%b '
|
||||
RPROMPT='%F{white}%? %F{white}%n'
|
||||
else
|
||||
PROMPT=$'%F{white}%~ %B%F{blue}>%f%b '
|
||||
RPROMPT=$'%F{red}%? %F{white}%n'
|
||||
fi
|
||||
}
|
||||
precmd_functions+=(prompt_builder)
|
||||
|
||||
+3234
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,73 @@
|
||||
{
|
||||
"$schema": "https://raw.githubusercontent.com/LGUG2Z/komorebi/v0.1.37/schema.bar.json",
|
||||
"monitor": 0,
|
||||
"font_family": "JetBrains Mono",
|
||||
"theme": {
|
||||
"palette": "Base16",
|
||||
"name": "Ashes",
|
||||
"accent": "Base0D"
|
||||
},
|
||||
"left_widgets": [
|
||||
{
|
||||
"Komorebi": {
|
||||
"workspaces": {
|
||||
"enable": true,
|
||||
"hide_empty_workspaces": false
|
||||
},
|
||||
"layout": {
|
||||
"enable": true
|
||||
},
|
||||
"focused_window": {
|
||||
"enable": true,
|
||||
"show_icon": true
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"right_widgets": [
|
||||
{
|
||||
"Update": {
|
||||
"enable": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"Media": {
|
||||
"enable": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"Storage": {
|
||||
"enable": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"Memory": {
|
||||
"enable": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"Network": {
|
||||
"enable": true,
|
||||
"show_total_data_transmitted": true,
|
||||
"show_network_activity": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"Date": {
|
||||
"enable": true,
|
||||
"format": "DayDateMonthYear"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Time": {
|
||||
"enable": true,
|
||||
"format": "TwentyFourHour"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Battery": {
|
||||
"enable": true
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
{
|
||||
"$schema": "https://raw.githubusercontent.com/LGUG2Z/komorebi/v0.1.37/schema.json",
|
||||
"app_specific_configuration_path": "$Env:KOMOREBI_CONFIG_HOME/applications.json",
|
||||
"window_hiding_behaviour": "Cloak",
|
||||
"cross_monitor_move_behaviour": "Insert",
|
||||
"default_workspace_padding": 5,
|
||||
"default_container_padding": -1,
|
||||
"border": true,
|
||||
"border_width": 6,
|
||||
"border_offset": -1,
|
||||
"theme": {
|
||||
"palette": "Base16",
|
||||
"name": "Ashes",
|
||||
"unfocused_border": "Base03",
|
||||
"bar_accent": "Base0D"
|
||||
},
|
||||
"stackbar": {
|
||||
"height": 40,
|
||||
"mode": "OnStack",
|
||||
"tabs": {
|
||||
"width": 300,
|
||||
"focused_text": "#00a542",
|
||||
"unfocused_text": "#b3b3b3",
|
||||
"background": "#141414"
|
||||
},
|
||||
},
|
||||
"mouse_follows_focus": false,
|
||||
"ignore_rules": [
|
||||
{
|
||||
"kind": "Exe",
|
||||
"id": "vmconnect.exe",
|
||||
"matching_strategy": "Equals"
|
||||
},
|
||||
{
|
||||
"kind": "Exe",
|
||||
"id": "KeePass.exe",
|
||||
"matching_strategy": "Equals"
|
||||
}
|
||||
],
|
||||
"object_name_change_applications": [
|
||||
{
|
||||
"kind": "Exe",
|
||||
"id": "dopus.exe",
|
||||
"matching_strategy": "Equals"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1,97 +0,0 @@
|
||||
# +---------+
|
||||
# | General |
|
||||
# +---------+
|
||||
|
||||
# Load more completions
|
||||
fpath=($ZSH/plugins/completions $fpath)
|
||||
|
||||
# Should be called before compinit
|
||||
zmodload zsh/complist
|
||||
|
||||
# Use hjlk in menu selection (during completion)
|
||||
# Doesn't work well with interactive mode
|
||||
bindkey -M menuselect 'h' vi-backward-char
|
||||
bindkey -M menuselect 'k' vi-up-line-or-history
|
||||
bindkey -M menuselect 'j' vi-down-line-or-history
|
||||
bindkey -M menuselect 'l' vi-forward-char
|
||||
|
||||
bindkey -M menuselect '^xg' clear-screen
|
||||
bindkey -M menuselect '^xi' vi-insert # Insert
|
||||
bindkey -M menuselect '^xh' accept-and-hold # Hold
|
||||
bindkey -M menuselect '^xn' accept-and-infer-next-history # Next
|
||||
bindkey -M menuselect '^xu' undo # Undo
|
||||
|
||||
autoload -U compinit; compinit -d $XDG_CACHE_HOME/zsh/.zcompdump
|
||||
_comp_options+=(globdots) # With hidden files
|
||||
|
||||
# Only work with the Zsh function vman
|
||||
# See $DOTFILES/zsh/scripts.zsh
|
||||
compdef vman="man"
|
||||
|
||||
# +---------+
|
||||
# | Options |
|
||||
# +---------+
|
||||
|
||||
# setopt GLOB_COMPLETE # Show autocompletion menu with globs
|
||||
setopt MENU_COMPLETE # Automatically highlight first element of completion menu
|
||||
setopt AUTO_LIST # Automatically list choices on ambiguous completion.
|
||||
setopt COMPLETE_IN_WORD # Complete from both ends of a word.
|
||||
|
||||
# +---------+
|
||||
# | zstyles |
|
||||
# +---------+
|
||||
|
||||
# Ztyle pattern
|
||||
# :completion:<function>:<completer>:<command>:<argument>:<tag>
|
||||
|
||||
# Define completers
|
||||
zstyle ':completion:*' completer _extensions _complete _approximate
|
||||
|
||||
# Use cache for commands using cache
|
||||
zstyle ':completion:*' use-cache on
|
||||
zstyle ':completion:*' cache-path "$XDG_CACHE_HOME/zsh/.zcompcache"
|
||||
# Complete the alias when _expand_alias is used as a function
|
||||
zstyle ':completion:*' complete true
|
||||
|
||||
zle -C alias-expension complete-word _generic
|
||||
bindkey '^Xa' alias-expension
|
||||
zstyle ':completion:alias-expension:*' completer _expand_alias
|
||||
|
||||
# Use cache for commands which use it
|
||||
|
||||
# Allow you to select in a menu
|
||||
zstyle ':completion:*' menu select
|
||||
|
||||
# Autocomplete options for cd instead of directory stack
|
||||
zstyle ':completion:*' complete-options true
|
||||
|
||||
zstyle ':completion:*' file-sort modification
|
||||
|
||||
|
||||
zstyle ':completion:*:*:*:*:corrections' format '%F{yellow}!- %d (errors: %e) -!%f'
|
||||
zstyle ':completion:*:*:*:*:descriptions' format '%F{blue}-- %D %d --%f'
|
||||
zstyle ':completion:*:*:*:*:messages' format ' %F{purple} -- %d --%f'
|
||||
zstyle ':completion:*:*:*:*:warnings' format ' %F{red}-- no matches found --%f'
|
||||
# zstyle ':completion:*:default' list-prompt '%S%M matches%s'
|
||||
# Colors for files and directory
|
||||
zstyle ':completion:*:*:*:*:default' list-colors ${(s.:.)LS_COLORS}
|
||||
|
||||
# Only display some tags for the command cd
|
||||
zstyle ':completion:*:*:cd:*' tag-order local-directories directory-stack path-directories
|
||||
# zstyle ':completion:*:complete:git:argument-1:' tag-order !aliases
|
||||
|
||||
# Required for completion to be in good groups (named after the tags)
|
||||
zstyle ':completion:*' group-name ''
|
||||
|
||||
zstyle ':completion:*:*:-command-:*:*' group-order aliases builtins functions commands
|
||||
|
||||
# See ZSHCOMPWID "completion matching control"
|
||||
zstyle ':completion:*' matcher-list '' 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*'
|
||||
|
||||
zstyle ':completion:*' keep-prefix true
|
||||
|
||||
zstyle -e ':completion:*:(ssh|scp|sftp|rsh|rsync):hosts' hosts 'reply=(${=${${(f)"$(cat {/etc/ssh_,~/.ssh/known_}hosts(|2)(N) /dev/null)"}%%[# ]*}//,/ })'
|
||||
|
||||
## For kubernetes
|
||||
#source $DOTFILES/zsh/plugins/kubectl-completion/_kubectl
|
||||
#zstyle ':completion:*:*:kubectl:*' list-grouped false
|
||||
Reference in New Issue
Block a user