Compare commits
3 commits
c1438b1baa
...
2e3fd03b0a
Author | SHA1 | Date | |
---|---|---|---|
|
2e3fd03b0a | ||
|
85fe7a8d8a | ||
|
f3a7fc82d9 |
4 changed files with 39 additions and 9 deletions
10
etc/zsh/zshrc
Normal file
10
etc/zsh/zshrc
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
sourcefiles() {
|
||||||
|
if [ -d "$1" ]; then
|
||||||
|
for i in "${1}/"*; do
|
||||||
|
. "$i"
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
sourcefiles /usr/local/etc/sh/shrc.d
|
||||||
|
|
24
home/zprofile
Normal file
24
home/zprofile
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
# Lines added by ahurac
|
||||||
|
|
||||||
|
# Prepenth the local bin directory to the path array
|
||||||
|
typeset -U path PATH
|
||||||
|
|
||||||
|
addpath() {
|
||||||
|
if [ -d "$1" ]; then
|
||||||
|
path=("$1" $path)
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
addpath ~/.local/bin
|
||||||
|
addpath ~/.local/share/minecraft/servers/bin
|
||||||
|
|
||||||
|
# Fastfetch
|
||||||
|
fastfetch
|
||||||
|
|
||||||
|
# Start Hyprland if the tty is 1
|
||||||
|
if [ "$(tty)" = /dev/tty1 ]; then
|
||||||
|
exec Hyprland
|
||||||
|
else
|
||||||
|
true
|
||||||
|
fi
|
||||||
|
|
2
home/zshenv
Normal file
2
home/zshenv
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
export EDITOR=nvim
|
||||||
|
|
12
home/zshrc
12
home/zshrc
|
@ -12,15 +12,6 @@ autoload -Uz compinit
|
||||||
compinit
|
compinit
|
||||||
# End of lines added by compinstall
|
# End of lines added by compinstall
|
||||||
|
|
||||||
# Source the system wid bash configuration
|
|
||||||
shrc_d=/usr/local/etc/sh/shrc.d
|
|
||||||
if [ -d "$shrc_d" ]; then
|
|
||||||
for i in "${shrc_d}/"*; do
|
|
||||||
. "$i"
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
unset shrc_d
|
|
||||||
|
|
||||||
# Bindings
|
# Bindings
|
||||||
# create a zkbd compatible hash;
|
# create a zkbd compatible hash;
|
||||||
# to add other keys to this hash, see: man 5 terminfo
|
# to add other keys to this hash, see: man 5 terminfo
|
||||||
|
@ -97,3 +88,6 @@ unsetopt autopushd
|
||||||
# Case sensitive
|
# Case sensitive
|
||||||
CASE_SENSITIVE="true"
|
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