Compare commits
10 commits
e640429588
...
6031f61974
Author | SHA1 | Date | |
---|---|---|---|
6031f61974 | |||
|
aa19f19f6a | ||
|
7512827a65 | ||
|
aebd6d0f3b | ||
|
6d09ce9640 | ||
|
f91207f4fb | ||
|
c30117770b | ||
|
74183efddf | ||
|
2fdba8a7a5 | ||
|
e4ccc78fef |
2
.gitattributes
vendored
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.knsv filter=lfs diff=lfs merge=lfs -text
|
|
@ -1,10 +1,25 @@
|
||||||
zinit ice depth=1; zinit light romkatv/powerlevel10k; # Powerlevel10k theme
|
zinit ice depth=1; zinit light romkatv/powerlevel10k; # Powerlevel10k theme
|
||||||
zinit light anatolykopyl/doas-zsh-plugin; # Double-escape adds doas to command
|
#zinit light anatolykopyl/doas-zsh-plugin; # Double-escape adds doas to command
|
||||||
zinit light Tarrasch/zsh-command-not-found; # Shows command suggestions on invalid
|
zinit light Tarrasch/zsh-command-not-found; # Shows command suggestions on invalid
|
||||||
zinit light Game4Move78/zsh-bitwarden; # Bitwarden cli utilities
|
zinit light Game4Move78/zsh-bitwarden; # Bitwarden cli utilities
|
||||||
zinit light ianthehenry/zsh-autoquoter; # Auto adds quotes around some commands
|
zinit light ianthehenry/zsh-autoquoter; # Auto adds quotes around some commands
|
||||||
zinit light zdharma-continuum/fast-syntax-highlighting; # Syntax highlighting
|
zinit light zdharma-continuum/fast-syntax-highlighting; # Syntax highlighting
|
||||||
zinit light zsh-users/zsh-autosuggestions # Command suggestions
|
zinit light zsh-users/zsh-autosuggestions; # Command suggestions
|
||||||
|
zinit light Tarrasch/zsh-bd; # bd command
|
||||||
|
zinit light zpm-zsh/colorize; # Colorizes a handfull of comands
|
||||||
|
|
||||||
export ZSH_AUTOSUGGEST_STRATEGY=(history completion) # Use history when available, then completion
|
if command -v atuin &> /dev/null; then
|
||||||
|
zinit light ellie/atuin; # Add atuin (better cmd history) support to zsh
|
||||||
|
|
||||||
|
# Declare a custom autosuggestion strategy for zsh-autosuggestions
|
||||||
|
_zsh_autosuggest_strategy_atuin() {
|
||||||
|
local results
|
||||||
|
|
||||||
|
results=("${(@f)$(atuin search -e 0 --cmd-only $1)}")
|
||||||
|
|
||||||
|
typeset -g suggestion="${results[-1]}"
|
||||||
|
}
|
||||||
|
fi
|
||||||
|
|
||||||
|
export ZSH_AUTOSUGGEST_STRATEGY=(atuin completion) # Use atuin history when available, then completion
|
||||||
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh # Load Powerlevel10k config
|
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh # Load Powerlevel10k config
|
||||||
|
|
|
@ -1,12 +1,22 @@
|
||||||
|
[[ ! -f ~/.zenv.zsh ]] || source ~/.zenv.zsh
|
||||||
#---------------------------------------------------------------------------------#
|
#---------------------------------------------------------------------------------#
|
||||||
### Fixes
|
### Fixes
|
||||||
export PLASMA_USE_QT_SCALING=1 # Make Plasma work properly with high DPI scaling on X11
|
|
||||||
export MOZ_USE_XINPUT2=1 # Use pixel-by-pixel touchpad scrolling in Firefox
|
export MOZ_USE_XINPUT2=1 # Use pixel-by-pixel touchpad scrolling in Firefox
|
||||||
export MOZ_ENABLE_WAYLAND=1 # Use experimental native Wayland support for Firefox and Thunderbird
|
if [[ $XDG_SESSION_TYPE = 'wayland' ]]; then
|
||||||
# export GTK_USE_PORTAL=1 # Try to use native file pickers in GTK programs
|
export MOZ_ENABLE_WAYLAND=1 # Use experimental native Wayland support for Firefox and Thunderbird
|
||||||
|
export QT_QPA_PLATFORM=wayland # Enable QT wayland plugin
|
||||||
|
else
|
||||||
|
export PLASMA_USE_QT_SCALING=1 # Make Plasma work properly with high DPI scaling on X11
|
||||||
|
fi
|
||||||
|
## Below is disabled because it causes firefox to stop antialiasing fonts in wayland for some reason
|
||||||
|
#export GTK_USE_PORTAL=1 # Try to use native file pickers in GTK programs
|
||||||
#---------------------------------------------------------------------------------#
|
#---------------------------------------------------------------------------------#
|
||||||
### Load pyenv
|
### Load pyenv
|
||||||
export PYENV_ROOT="$HOME/.pyenv"
|
if command -v pyenv &> /dev/null; then
|
||||||
export PATH="$PYENV_ROOT/bin:$PATH"
|
export PYENV_ROOT="$HOME/.pyenv"
|
||||||
eval "$(pyenv init --path)"
|
export PATH="$PYENV_ROOT/bin:$PATH"
|
||||||
|
eval "$(pyenv init -)"
|
||||||
|
fi
|
||||||
#---------------------------------------------------------------------------------#
|
#---------------------------------------------------------------------------------#
|
||||||
|
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
|
||||||
|
echo "bye" | gpg-connect-agent &> /dev/null
|
||||||
|
|
|
@ -10,8 +10,8 @@ alias ......="cd ../../.."
|
||||||
psh() {
|
psh() {
|
||||||
fmt && ga && gc "$@" && gp
|
fmt && ga && gc "$@" && gp
|
||||||
}
|
}
|
||||||
alias stop="doas systemctl stop"
|
alias stop="sudo systemctl stop"
|
||||||
alias start="doas systemctl start"
|
alias start="sudo systemctl start"
|
||||||
alias ls="exa"
|
alias ls="exa"
|
||||||
alias la="exa -a"
|
alias la="exa -a"
|
||||||
alias lal="exa -al"
|
alias lal="exa -al"
|
||||||
|
@ -22,3 +22,16 @@ else
|
||||||
alias clip="xclip -selection clipboard"
|
alias clip="xclip -selection clipboard"
|
||||||
fi
|
fi
|
||||||
alias 2fa="TOKEN=\$(yad --title=\"Authy\" --text=\"What code would you like to copy?\" --entry) && mambembe-cli get-token --service-name \$TOKEN | tr -dc '0-9' | clip"
|
alias 2fa="TOKEN=\$(yad --title=\"Authy\" --text=\"What code would you like to copy?\" --entry) && mambembe-cli get-token --service-name \$TOKEN | tr -dc '0-9' | clip"
|
||||||
|
ytp() { AUDIOFILE="$(mktemp -u)" && yt-dlp --default-search ytsearch "$@" -f ba --output $AUDIOFILE && cvlc $AUDIOFILE --play-and-exit && rm $AUDIOFILE }
|
||||||
|
zshdir() {
|
||||||
|
zsh -c "cd $@; zsh -i"
|
||||||
|
}
|
||||||
|
mgc ()
|
||||||
|
{
|
||||||
|
mambembe-cli get-token -s "$@" | fzf --reverse -0 -1 | rg -oP 'Token: "\K\d+' | xclip -i -selection clipboard
|
||||||
|
}
|
||||||
|
alias yarn-classic="corepack prepare yarn@1.22.19 --activate"
|
||||||
|
alias yarn-modern="corepack prepare yarn@3.6.1 --activate"
|
||||||
|
ckdir() {
|
||||||
|
mkdir $1 && cd $1
|
||||||
|
}
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
[[ ! -f ~/.zenv.zsh ]] || source ~/.zenv.zsh
|
||||||
#---------------------------------------------------------------------------------#
|
#---------------------------------------------------------------------------------#
|
||||||
### Powerlevel10k instant prompt
|
### Powerlevel10k instant prompt
|
||||||
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
|
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
|
||||||
|
@ -7,32 +8,40 @@ if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]
|
||||||
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
|
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
|
||||||
fi
|
fi
|
||||||
#---------------------------------------------------------------------------------#
|
#---------------------------------------------------------------------------------#
|
||||||
|
### Load nvm if script is in aur location
|
||||||
|
if [[ -f /usr/share/nvm/init-nvm.sh ]]; then
|
||||||
|
source /usr/share/nvm/init-nvm.sh
|
||||||
|
fi
|
||||||
|
#---------------------------------------------------------------------------------#
|
||||||
### Add things to PATH
|
### Add things to PATH
|
||||||
path+=("$HOME/.pyenv/bin")
|
path+=("$XDG_DATA_HOME/pyenv/bin")
|
||||||
path+=("$HOME/.local/bin")
|
path+=("$HOME/.local/bin")
|
||||||
path+=("$HOME/Android/Sdk/platform-tools")
|
path+=("$HOME/Android/Sdk/platform-tools")
|
||||||
path+=("$HOME/.cargo/bin")
|
path+=("$XDG_DATA_HOME/cargo/bin")
|
||||||
export PATH
|
export PATH
|
||||||
#--------------------------------------------------------------------------------#
|
#--------------------------------------------------------------------------------#
|
||||||
### Zsh config
|
### Zsh config
|
||||||
# Configure command history saving
|
# Configure command history saving (if atuin is not found)
|
||||||
HISTFILE=~/.zsh_history # Sets history file
|
if ! command -v atuin &> /dev/null; then
|
||||||
HISTSIZE=1000 # Sets lines to save history for
|
HISTFILE="$HOME/.zsh_history"
|
||||||
SAVEHIST=1000 # Sets lines to save history for
|
HISTSIZE=500000
|
||||||
|
SAVEHIST=500000
|
||||||
|
setopt INC_APPEND_HISTORY
|
||||||
|
setopt SHARE_HISTORY
|
||||||
|
fi
|
||||||
# Configure emacs keys
|
# Configure emacs keys
|
||||||
bindkey -e
|
bindkey -e
|
||||||
#---------------------------------------------------------------------------------#
|
#---------------------------------------------------------------------------------#
|
||||||
### Load nvm (node version manager)
|
|
||||||
source /usr/share/nvm/init-nvm.sh
|
|
||||||
#---------------------------------------------------------------------------------#
|
|
||||||
### Load pyenv
|
### Load pyenv
|
||||||
if ls "$HOME/.pyenv" &> /dev/null; then
|
if command -v pyenv &> /dev/null; then
|
||||||
|
export PYENV_ROOT="$HOME/.pyenv"
|
||||||
|
export PATH="$PYENV_ROOT/bin:$PATH"
|
||||||
eval "$(pyenv init -)"
|
eval "$(pyenv init -)"
|
||||||
fi
|
fi
|
||||||
#---------------------------------------------------------------------------------#
|
#---------------------------------------------------------------------------------#
|
||||||
### Aliases
|
### Aliases
|
||||||
source "$HOME/.zsh_aliases"
|
source "$HOME/.zsh_aliases"
|
||||||
eval $(thefuck --alias) # `fuck` alias
|
#eval $(thefuck --alias) # `fuck` alias
|
||||||
#---------------------------------------------------------------------------------#
|
#---------------------------------------------------------------------------------#
|
||||||
### Setup zinit
|
### Setup zinit
|
||||||
# Added by Zinit's installer
|
# Added by Zinit's installer
|
||||||
|
@ -60,7 +69,7 @@ zinit light-mode for \
|
||||||
[[ ! -f ~/.zinit.zsh ]] || source ~/.zinit.zsh # Load zinit plugins and themes
|
[[ ! -f ~/.zinit.zsh ]] || source ~/.zinit.zsh # Load zinit plugins and themes
|
||||||
#---------------------------------------------------------------------------------#
|
#---------------------------------------------------------------------------------#
|
||||||
### Fixes
|
### Fixes
|
||||||
export GPG_TTY=$(tty) # Fix gpg signing
|
export GPG_TTY=$TTY # Fix gpg signing
|
||||||
## A giant handful of key fixes
|
## A giant handful of key fixes
|
||||||
bindkey "^[[3~" delete-char
|
bindkey "^[[3~" delete-char
|
||||||
bindkey "^[[3;2~" delete-char
|
bindkey "^[[3;2~" delete-char
|
||||||
|
@ -71,4 +80,7 @@ bindkey "^[[3;5~" kill-word
|
||||||
bindkey "^H" backward-kill-word
|
bindkey "^H" backward-kill-word
|
||||||
bindkey "^[[1;5D" backward-word
|
bindkey "^[[1;5D" backward-word
|
||||||
bindkey "^[[1;5C" forward-word
|
bindkey "^[[1;5C" forward-word
|
||||||
#---------------------------------------------------------------------------------#
|
#--------------------------------------------------------------------------------#
|
||||||
|
### Idk ssh or something
|
||||||
|
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
|
||||||
|
echo "bye" | gpg-connect-agent &> /dev/null
|
||||||
|
|
|
@ -14,6 +14,8 @@ Plug 'neoclide/coc.nvim', { 'branch': 'release' } " Language server support
|
||||||
Plug 'tommcdo/vim-lion' " Allow aligning code by an amount of chars
|
Plug 'tommcdo/vim-lion' " Allow aligning code by an amount of chars
|
||||||
Plug 'Shirk/vim-gas' " GNU syntax support
|
Plug 'Shirk/vim-gas' " GNU syntax support
|
||||||
Plug 'ntpeters/vim-better-whitespace' " Shows whitespace at the end of lines
|
Plug 'ntpeters/vim-better-whitespace' " Shows whitespace at the end of lines
|
||||||
|
Plug 'chrisbra/SudoEdit.vim' " Allow editing root files
|
||||||
|
Plug 'mg979/vim-visual-multi', {'branch': 'master'} " Multi curser vim
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
||||||
" Get syntax files from config folder
|
" Get syntax files from config folder
|
||||||
|
|
BIN
keys/1E064E7C739CC3426132CD04CE7836AA83D56858.asc
Normal file
BIN
main.knsv
Before Width: | Height: | Size: 16 MiB After Width: | Height: | Size: 133 B |
Before Width: | Height: | Size: 8.8 MiB After Width: | Height: | Size: 132 B |
Before Width: | Height: | Size: 10 MiB After Width: | Height: | Size: 133 B |
Before Width: | Height: | Size: 13 MiB After Width: | Height: | Size: 133 B |
Before Width: | Height: | Size: 16 MiB After Width: | Height: | Size: 133 B |
Before Width: | Height: | Size: 14 MiB After Width: | Height: | Size: 133 B |
Before Width: | Height: | Size: 16 MiB After Width: | Height: | Size: 133 B |
Before Width: | Height: | Size: 8.4 MiB After Width: | Height: | Size: 132 B |
Before Width: | Height: | Size: 13 MiB After Width: | Height: | Size: 133 B |
Before Width: | Height: | Size: 7.2 MiB After Width: | Height: | Size: 132 B |
Before Width: | Height: | Size: 12 MiB After Width: | Height: | Size: 133 B |