This commit is contained in:
TymanWasTaken 2022-06-22 15:08:14 -04:00
parent 74183efddf
commit c30117770b
No known key found for this signature in database
GPG key ID: CE7836AA83D56858
2 changed files with 12 additions and 2 deletions

View file

@ -26,3 +26,9 @@ ytp() { AUDIOFILE="$(mktemp -u)" && yt-dlp --default-search ytsearch "$@" -f ba
zshdir() { zshdir() {
zsh -c "cd $@; zsh -i" 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.2.1 --activate"

View file

@ -34,7 +34,7 @@ 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
@ -62,7 +62,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
@ -74,3 +74,7 @@ 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
#---------------------------------------------------------------------------------# #---------------------------------------------------------------------------------#
### Gitea autocompletions
if ls "$HOME/.config/tea/autocomplete.zsh" &>/dev/null; then
PROG=tea _CLI_ZSH_AUTOCOMPLETE_HACK=1 source "/home/tyman/.config/tea/autocomplete.zsh"
fi