zsh : mise à jour configuration
This commit is contained in:
parent
7f2c5866fe
commit
d522976158
2 changed files with 4 additions and 20 deletions
|
@ -1,4 +1,5 @@
|
|||
# Lines added by ahurac
|
||||
# Fastfetch
|
||||
fastfetch
|
||||
|
||||
# Prepenth the local bin directory to the path array
|
||||
typeset -U path PATH
|
||||
|
@ -12,13 +13,7 @@ addpath() {
|
|||
addpath ~/.local/bin
|
||||
addpath ~/.local/share/qemu/bin
|
||||
|
||||
# Fastfetch
|
||||
fastfetch
|
||||
|
||||
# Start Hyprland if the tty is 1
|
||||
if [ "$(tty)" = /dev/tty1 ]; then
|
||||
exec Hyprland
|
||||
else
|
||||
true
|
||||
fi
|
||||
|
||||
|
|
15
home/zshrc
15
home/zshrc
|
@ -64,17 +64,10 @@ fi
|
|||
|
||||
# Custom the prompt
|
||||
autoload colors && colors
|
||||
PROMPT=$'╭─[%F{magenta}%B%n@%m%f%b]──[%F{blue}%B%5~%b%f]──[%B%?%b]\n╰─[%# '
|
||||
|
||||
# Completion even with sudo
|
||||
zstyle ':completion::complete:*' gain-privileges 1
|
||||
PROMPT=$'╭─[%F{magenta}%B%n@%m%f%b]──[%F{blue}%B%50<...<%5~%<<%b%f]──[%B%?%b]\n╰─[%B%j%b%# '
|
||||
|
||||
# Source more definitions
|
||||
zshrc_d="$HOME/.zshrc.d"
|
||||
[[ -d $zshrc_d ]] && for rc in "${zshrc_d}/"*; do
|
||||
source "$rc"
|
||||
done
|
||||
unset zshrc_d
|
||||
sourcefiles ~/.zshrc.d
|
||||
|
||||
# Disable the vi-mode
|
||||
bindkey -e
|
||||
|
@ -82,12 +75,8 @@ bindkey -e
|
|||
# Disable the autopushd feature
|
||||
unsetopt autopushd
|
||||
|
||||
# Set the umask
|
||||
#umask 077
|
||||
|
||||
# Case sensitive
|
||||
CASE_SENSITIVE="true"
|
||||
|
||||
# zsh-vi-mode
|
||||
source /usr/share/zsh/plugins/zsh-vi-mode/zsh-vi-mode.plugin.zsh
|
||||
|
||||
|
|
Loading…
Reference in a new issue