mirror of
https://github.com/rywng/dotfiles.git
synced 2024-11-22 02:41:50 +08:00
commit
58a35a9541
4
.bashrc
4
.bashrc
@ -18,6 +18,6 @@ fi
|
||||
# Put your fun stuff here.
|
||||
|
||||
# https://wiki.gentoo.org/wiki/Fish#fish_as_a_default_shell_with_bash_as_the_login_shell
|
||||
# Use fish in place of bash
|
||||
# Use nu in place of bash
|
||||
# keep this line at the bottom of ~/.bashrc
|
||||
[ -x /bin/fish ] && SHELL=/bin/fish exec fish
|
||||
# [ -x /bin/nu ] && SHELL=/bin/nu exec nu
|
||||
|
@ -7,6 +7,7 @@ bold_italic_font Iosevka Term SS15 Bold Italic
|
||||
font_size 14
|
||||
|
||||
# shell stuff
|
||||
|
||||
shell_integration enabled
|
||||
|
||||
enable_audio_bell no
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit 2c98923861d2954c646f764bf68a56c408c32d2e
|
||||
Subproject commit fd3bdba06fa3bffe1f3465ef6963606e71ba5ff4
|
@ -5,7 +5,7 @@ set $left h
|
||||
set $down j
|
||||
set $up k
|
||||
set $right l
|
||||
set $term kitty -1 /bin/fish
|
||||
set $term kitty -1
|
||||
set $menu fuzzel
|
||||
|
||||
# my keybinds
|
||||
|
@ -9,7 +9,7 @@ if [[ ! $(which swayidle 2> /dev/null) ]]; then
|
||||
fi
|
||||
|
||||
choices=("suspend" "poweroff" "reboot" "lock")
|
||||
choice=$(printf "%s\n" "${choices[@]}" | fuzzel -d --prompt ": ")
|
||||
choice=$(printf "%s\n" "${choices[@]}" | fuzzel -d --prompt "🔌: ")
|
||||
|
||||
|
||||
if test "$choice" = lock ; then
|
||||
|
43
.zshrc
43
.zshrc
@ -24,15 +24,11 @@ zinit wait lucid for \
|
||||
agkozak/zsh-z \
|
||||
zpm-zsh/colors \
|
||||
zpm-zsh/colorize \
|
||||
rywng/shortify.zsh \
|
||||
rywng/kitty-zsh
|
||||
rywng/shortify.zsh
|
||||
|
||||
zinit ice wait lucid atinit"bindkey '' autosuggest-execute" atload'_zsh_autosuggest_start'
|
||||
zinit ice wait lucid atinit"bindkey '^ ' autosuggest-execute" atload'_zsh_autosuggest_start'
|
||||
zinit light zsh-users/zsh-autosuggestions
|
||||
|
||||
zinit ice wait lucid
|
||||
zinit load hlissner/zsh-autopair
|
||||
|
||||
zinit light zsh-users/zsh-completions
|
||||
zinit light zsh-users/zsh-history-substring-search
|
||||
|
||||
@ -42,13 +38,16 @@ if ! command -v bat &> /dev/null ; then
|
||||
zinit light sharkdp/bat
|
||||
fi
|
||||
|
||||
zinit ice from"gh-r" as"program" mv"direnv* -> direnv"
|
||||
zinit light direnv/direnv
|
||||
if ! command -v direnv &> /dev/null; then
|
||||
zinit ice from"gh-r" as"program" mv"direnv* -> direnv"
|
||||
zinit light direnv/direnv
|
||||
fi
|
||||
|
||||
autoload -Uz _zinit
|
||||
(( ${+_comps} )) && _comps[zinit]=_zinit
|
||||
|
||||
test -n "$LS_COLORS" || eval $(dircolors) || echo 'Warning: Unable to set LS_COLORS'
|
||||
|
||||
# The following lines were added by compinstall
|
||||
|
||||
zstyle ':completion:*' auto-description '%F{green}Specify%f: %F{cyan}%d%f'
|
||||
@ -59,20 +58,19 @@ zstyle ':completion:*' file-sort name
|
||||
zstyle ':completion:*' format '%F{green}Completing%f %F{yellow}%d%f'
|
||||
zstyle ':completion:*' glob 1
|
||||
zstyle ':completion:*' group-name ''
|
||||
zstyle ':completion:*' ignore-parents parent pwd ..
|
||||
zstyle ':completion:*' ignore-parents parent pwd .. directory
|
||||
zstyle ':completion:*' insert-unambiguous true
|
||||
zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}
|
||||
zstyle ':completion:*' list-prompt %S%F{green}At %p%f: Hit TAB for more, or the character to insert%s
|
||||
zstyle ':completion:*' matcher-list '' 'm:{[:lower:][:upper:]}={[:upper:][:lower:]}' 'r:|[._-]=** r:|=**' 'l:|=* r:|=*'
|
||||
zstyle ':completion:*' max-errors 16 numeric
|
||||
zstyle ':completion:*' matcher-list '' 'm:{[:lower:]}={[:upper:]}' 'r:|[._-]=** r:|=**' 'l:|=* r:|=*'
|
||||
zstyle ':completion:*' max-errors 2
|
||||
zstyle ':completion:*' menu select=1
|
||||
zstyle ':completion:*' original false
|
||||
zstyle ':completion:*' preserve-prefix '//[^/]##/'
|
||||
zstyle ':completion:*' prompt '%F{green}Completing%f, with %F{red}%e%f errors'
|
||||
zstyle ':completion:*' select-prompt %S%F{green}Scrolling%f active: current selection at %F{blue}%p%f%s
|
||||
zstyle ':completion:*' substitute 1
|
||||
zstyle ':completion:*' use-compctl true
|
||||
zstyle :compinstall filename ~/.zshrc
|
||||
zstyle ':completion:*' select-prompt '%S%F{green}Scrolling%f active: current selection at %F{blue}%p%f%s'
|
||||
zstyle ':completion:*' substitute 0
|
||||
zstyle ':completion:*' verbose true
|
||||
zstyle :compinstall filename '/home/ryan/.zshrc'
|
||||
|
||||
autoload -Uz compinit
|
||||
compinit
|
||||
@ -81,8 +79,8 @@ compinit
|
||||
HISTFILE=~/.cache/zhistory
|
||||
HISTSIZE=8192
|
||||
SAVEHIST=8192
|
||||
setopt autocd extendedglob nomatch notify auto_pushd
|
||||
unsetopt beep
|
||||
setopt autocd autopushd extendedglob nomatch
|
||||
unsetopt beep notify
|
||||
bindkey -e
|
||||
# End of lines configured by zsh-newuser-install
|
||||
|
||||
@ -107,8 +105,8 @@ bindkey -M menuselect 'j' vi-down-line-or-history
|
||||
|
||||
bindkey '^[[A' history-substring-search-up
|
||||
bindkey '^[[B' history-substring-search-down
|
||||
bindkey '' history-substring-search-up
|
||||
bindkey '' history-substring-search-down
|
||||
bindkey '^P' history-substring-search-up
|
||||
bindkey '^N' history-substring-search-down
|
||||
|
||||
bindkey ' ' magic-space
|
||||
|
||||
@ -125,15 +123,14 @@ export ZSHZ_DATA=$HOME/.cache/z
|
||||
export BAT_THEME="base16"
|
||||
export FZF_DEFAULT_OPTS="--reverse --cycle --height=40% --border sharp --prompt=🔎"
|
||||
export GPG_TTY=$(tty) # fixes gpg
|
||||
export HISTORY_SUBSTRING_SEARCH_FUZZY=1
|
||||
export LESS="-i $LESS"
|
||||
export MANROFFOPT="-c"
|
||||
export MANWIDTH=${MANWIDTH:-78}
|
||||
export SSH_AUTH_SOCK=$XDG_RUNTIME_DIR/ssh-agent.socket
|
||||
|
||||
# local path
|
||||
export MANPATH="${MANPATH}:${HOME}/.local/share/man"
|
||||
export PATH="${PATH}:${HOME}/.local/bin:${HOME}/.scripts:${HOME}/cargo/bin:${HOME}/.cache/go/bin:${HOME}/.local/share/nvim/mason/bin"
|
||||
export PATH="${PATH}:${HOME}/.local/bin:${HOME}/.scripts:${HOME}/.cache/go/bin:${HOME}/.local/share/nvim/mason/bin"
|
||||
|
||||
# ccache support
|
||||
export PATH="/usr/lib/ccache/bin${PATH:+:}$PATH"
|
||||
export USE_CCACHE=1
|
||||
|
Loading…
Reference in New Issue
Block a user