zsh: use autosuggestions

This commit is contained in:
Oshgnacknak 2024-01-06 00:04:27 +01:00
parent 371d5a8a81
commit ad2ba063c8
Signed by: Oshgnacknak
GPG key ID: 8CB7375654585956
2 changed files with 49 additions and 6 deletions

View file

@ -1,2 +1,48 @@
# dotfiles
This repo will hold a copy of most of my dotfiles.
## flake.nix
You can use these dotfiles ad-hoc under nixos using:
```bash
nix run nixpkgs#home-manager -- switch --impure --flake .
```
## Self build dependencies
- dwm
- st
- slstatus
## Dependencies
- aur/zsh-manydots-magic
- aur/breeze-red-cursor-theme
- aur/hyprland-git
- aur/hyprsome-git
- aur/mimi-git
- aur/picom-animations-git
- aur/shellgpt-git
- aur/vifmimg-git
- aur/waybar-hyprland-git 0.9.17.r159.ga9a22234-1
- aur/xdg-desktop-portal-hyprland-git 1:r272.04f5793-1
- dunst
- feh
- ffmpeg-python
- ffmpegthumbnailer
- gallery-dl
- i3lock
- jq
- mpv
- nvim
- python-eyed3
- python-pynvim
- qutebrowser
- sxiv
- ueberzug
- unclutter
- vifm
- youtube-dl
- zathura
- zsh-completions
- zsh-syntax-highlighting

9
_zshrc
View file

@ -1,25 +1,21 @@
#!/bin/zsh
# The following lines were added by compinstall
zstyle ':completion:*' completer _expand _complete _ignored
zstyle ':completion:*' list-colors ''
zstyle ':completion:*' menu select=0
zstyle ':completion:*' select-prompt %SScrolling active: current selection at %p%s
zstyle :compinstall filename '/home/osh/.zshrc'
autoload -Uz compinit
autoload -Uz compinit manydots-magic
compinit
# End of lines added by compinstall
manydots-magic
# Lines configured by zsh-newuser-install
HISTFILE=~/.histfile
HISTSIZE=1000
SAVEHIST=100000
setopt appendhistory nomatch notify extendedglob
bindkey -v
# End of lines configured by zsh-newuser-install
# Change cursor shape for different vi modes.
function zle-keymap-select {
if [[ ${KEYMAP} == vicmd ]] ||
[[ $1 = 'block' ]]; then
@ -37,6 +33,7 @@ zle -N zle-keymap-select
[ -f "$HOME/.bashrc" ] && emulate sh -c "source $HOME/.bashrc"
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
source /usr/share/fzf/key-bindings.zsh
source /usr/share/fzf/completion.zsh