summaryrefslogtreecommitdiff
path: root/artix/home/.config/zsh
diff options
context:
space:
mode:
authorNantha Sorubakanthan <nantha@mielota.com>2026-04-13 21:45:43 +0200
committerNantha Sorubakanthan <nantha@mielota.com>2026-04-13 21:45:43 +0200
commit0c913f1e421b9d47c052350c4c1d619e4ac6a297 (patch)
treec9124ff04b9252836221c41d2ca2fa133d166251 /artix/home/.config/zsh
Initial commit
Diffstat (limited to 'artix/home/.config/zsh')
-rw-r--r--artix/home/.config/zsh/.zprofile3
-rw-r--r--artix/home/.config/zsh/.zshrc41
2 files changed, 44 insertions, 0 deletions
diff --git a/artix/home/.config/zsh/.zprofile b/artix/home/.config/zsh/.zprofile
new file mode 100644
index 0000000..f1e5551
--- /dev/null
+++ b/artix/home/.config/zsh/.zprofile
@@ -0,0 +1,3 @@
+[[ $(tty) = "/dev/tty1" ]] && start-hyprland
+[[ $(tty) = "/dev/tty2" ]] && /usr/lib/plasma-dbus-run-session-if-needed /usr/bin/startplasma-wayland
+[[ $(tty) = "/dev/ttyv0" ]] && startx
diff --git a/artix/home/.config/zsh/.zshrc b/artix/home/.config/zsh/.zshrc
new file mode 100644
index 0000000..bc53096
--- /dev/null
+++ b/artix/home/.config/zsh/.zshrc
@@ -0,0 +1,41 @@
+[ -d $XDG_CACHE_HOME/zsh ] || mkdir $XDG_CACHE_HOME/zsh
+[ -d $XDG_STATE_HOME/zsh ] || mkdir $XDG_STATE_HOME/zsh
+
+alias grep="grep --color=auto"
+alias ls="ls -a --color=auto --group-directories-first"
+alias mkdir="mkdir -v"
+alias ln="ln -v"
+alias rm="rm -v"
+alias rmdir="rmdir -v"
+alias chmod="chmod -v"
+alias mv="mv -v"
+alias cp="cp -v"
+
+zstyle :compinstall filename "~/.zshrc"
+autoload -Uz compinit
+compinit -d "$XDG_CACHE_HOME"/zsh/zcompdump-"$ZSH_VERSION"
+zstyle ":completion:*" list-colors ${(s.:.)LS_COLORS}
+autoload -Uz vcs_info
+precmd_functions+=( vcs_info )
+
+setopt prompt_subst
+zstyle ':vcs_info:git:*' formats '(%F{red}%b%f)'
+
+PS1="%F{magenta}%3~%f\$vcs_info_msg_0_ %F{blue}
+%% %f"
+
+bindkey "^H" backward-kill-word
+bindkey "^[[1;5C" forward-word
+bindkey "^[[1;5D" backward-word
+bindkey "^E" end-of-line
+bindkey "^A" beginning-of-line
+
+if [[ "$(uname)" == "Linux" ]]; then
+ source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.plugin.zsh 2> /dev/null || source /usr/share/zsh-autosuggestions/zsh-autosuggestions.zsh 2> /dev/null
+ source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.plugin.zsh 2> /dev/null || source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh 2> /dev/null || source /usr/share/zsh/site-functions/zsh-syntax-highlighting.zsh
+ alias lp="loginctl poweroff"
+ alias lr="loginctl reboot"
+else if [[ "$(uname)" == "FreeBSD" ]]
+ source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
+ source /usr/local/share/zsh-autosuggestions/zsh-autosuggestions.zsh
+fi