1
0
Fork 0
forked from ahurac/dotfiles

zsh : mise à jour configuration

This commit is contained in:
Ahurac 2024-01-06 17:42:37 +01:00
parent 7f2c5866fe
commit d522976158
2 changed files with 4 additions and 20 deletions

View file

@ -1,4 +1,5 @@
# Lines added by ahurac # Fastfetch
fastfetch
# Prepenth the local bin directory to the path array # Prepenth the local bin directory to the path array
typeset -U path PATH typeset -U path PATH
@ -12,13 +13,7 @@ addpath() {
addpath ~/.local/bin addpath ~/.local/bin
addpath ~/.local/share/qemu/bin addpath ~/.local/share/qemu/bin
# Fastfetch
fastfetch
# Start Hyprland if the tty is 1 # Start Hyprland if the tty is 1
if [ "$(tty)" = /dev/tty1 ]; then if [ "$(tty)" = /dev/tty1 ]; then
exec Hyprland exec Hyprland
else
true
fi fi

View file

@ -64,17 +64,10 @@ fi
# Custom the prompt # Custom the prompt
autoload colors && colors autoload colors && colors
PROMPT=$'╭─[%F{magenta}%B%n@%m%f%b]──[%F{blue}%B%5~%b%f]──[%B%?%b]\n╰─[%# ' PROMPT=$'╭─[%F{magenta}%B%n@%m%f%b]──[%F{blue}%B%50<...<%5~%<<%b%f]──[%B%?%b]\n╰─[%B%j%b%# '
# Completion even with sudo
zstyle ':completion::complete:*' gain-privileges 1
# Source more definitions # Source more definitions
zshrc_d="$HOME/.zshrc.d" sourcefiles ~/.zshrc.d
[[ -d $zshrc_d ]] && for rc in "${zshrc_d}/"*; do
source "$rc"
done
unset zshrc_d
# Disable the vi-mode # Disable the vi-mode
bindkey -e bindkey -e
@ -82,12 +75,8 @@ bindkey -e
# Disable the autopushd feature # Disable the autopushd feature
unsetopt autopushd unsetopt autopushd
# Set the umask
#umask 077
# Case sensitive # Case sensitive
CASE_SENSITIVE="true" CASE_SENSITIVE="true"
# zsh-vi-mode # zsh-vi-mode
source /usr/share/zsh/plugins/zsh-vi-mode/zsh-vi-mode.plugin.zsh source /usr/share/zsh/plugins/zsh-vi-mode/zsh-vi-mode.plugin.zsh