diff --git a/dotfiles/.zsh_aliases b/dotfiles/.zsh_aliases index 5bfa60d..803ad57 100644 --- a/dotfiles/.zsh_aliases +++ b/dotfiles/.zsh_aliases @@ -22,3 +22,7 @@ else alias clip="xclip -selection clipboard" 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" +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" +} diff --git a/dotfiles/.zshrc b/dotfiles/.zshrc index 4c00638..57c39b2 100644 --- a/dotfiles/.zshrc +++ b/dotfiles/.zshrc @@ -7,6 +7,9 @@ if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]] source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" fi #---------------------------------------------------------------------------------# +### Load nvm (node version manager) +source /usr/share/nvm/init-nvm.sh +#---------------------------------------------------------------------------------# ### Add things to PATH path+=("$HOME/.pyenv/bin") path+=("$HOME/.local/bin") @@ -16,15 +19,14 @@ export PATH #--------------------------------------------------------------------------------# ### Zsh config # Configure command history saving -HISTFILE=~/.zsh_history # Sets history file -HISTSIZE=1000 # Sets lines to save history for -SAVEHIST=1000 # Sets lines to save history for +HISTFILE="$HOME/.zsh_history" +HISTSIZE=500000 +SAVEHIST=500000 +setopt INC_APPEND_HISTORY +setopt SHARE_HISTORY # Configure emacs keys bindkey -e #---------------------------------------------------------------------------------# -### Load nvm (node version manager) -source /usr/share/nvm/init-nvm.sh -#---------------------------------------------------------------------------------# ### Load pyenv if ls "$HOME/.pyenv" &> /dev/null; then eval "$(pyenv init -)" diff --git a/dotfiles/nvim/init.vim b/dotfiles/nvim/init.vim index f032712..a3af892 100644 --- a/dotfiles/nvim/init.vim +++ b/dotfiles/nvim/init.vim @@ -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 'Shirk/vim-gas' " GNU syntax support 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() " Get syntax files from config folder diff --git a/main.knsv b/main.knsv index acc9f48..4386539 100644 Binary files a/main.knsv and b/main.knsv differ