about summary refs log tree commit diff stats
path: root/modules/by-name/zs/zsh/config/zsh-init.zsh
blob: cd8d34a99a577a1c5ae9c69b2a038aa210b1587a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/usr/bin/env zsh
# If not running interactively, don't do anything
[[ $- != *i* ]] && return

# Flex on the ubuntu users
#[ "$NVIM" ] || hyfetch
[ "$NVIM" ] || task next
#loginctl show-session $XDG_SESSION_ID

## Enable colors and change prompt:
#autoload -Uz colors && colors
#autoload -Uz compinit && compinit -u
## Edit line in vim buffer ctrl-v
autoload -Uz edit-command-line
zle -N edit-command-line
## Enter vim buffer from normal mode
#autoload -Uz edit-command-line && zle -N edit-command-line
bindkey "^V" edit-command-line

## zstyles
#zstyle ':completion:*' menu select
## Auto complete with case insensitivity
#zstyle ':completion:*' matcher-list '' 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*'

#zmodload zsh/complist
#fpath+=/home/dt/.config/zsh/comp
#compinit
#_comp_options+=(globdots)		# Include hidden files.
#
## Source configs
#source "${ZDOTDIR}/ali.sh"
#source "${ZDOTDIR}/prompt.sh"
#source "${ZDOTDIR}/hotkeys.sh"
#source "./${path_custom_cursor}"
#source ~/.local/lib/shell/lib
#
## Load zsh-syntax-highlighting
#source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
## Suggest aliases for commands
#source /usr/share/zsh/plugins/zsh-you-should-use/you-should-use.plugin.zsh
#
##eval "$(lua ~/scripts/z.lua --init zsh enhanced)"