From 2fb0ec3009aae1a1a157d24ce16ef81dc4cc4453 Mon Sep 17 00:00:00 2001 From: marcellus Date: Mon, 24 Apr 2023 18:06:42 +0200 Subject: add: config files for zsh & x --- .xinitrc | 5 +++++ .zprofile | 2 ++ .zshenv | 1 + .zshrc | 33 +++++++++++++++++++++++++++++++++ 4 files changed, 41 insertions(+) create mode 100644 .xinitrc create mode 100644 .zprofile create mode 100644 .zshenv create mode 100644 .zshrc diff --git a/.xinitrc b/.xinitrc new file mode 100644 index 0000000..40b53a6 --- /dev/null +++ b/.xinitrc @@ -0,0 +1,5 @@ +setxkbmap fr +./randwp +sxhkd & +dwmblocks & +exec dwm diff --git a/.zprofile b/.zprofile new file mode 100644 index 0000000..d8f183c --- /dev/null +++ b/.zprofile @@ -0,0 +1,2 @@ + +[ "$(tty)" = "/dev/tty1" ] && ! pidof -s Xorg >/dev/null 2>&1 && exec startx diff --git a/.zshenv b/.zshenv new file mode 100644 index 0000000..e298187 --- /dev/null +++ b/.zshenv @@ -0,0 +1 @@ +TERMINAL="st" diff --git a/.zshrc b/.zshrc new file mode 100644 index 0000000..2a97460 --- /dev/null +++ b/.zshrc @@ -0,0 +1,33 @@ +# Created by newuser for 5.9 +curl -s https://zeus.ionis-it.com/api/group/428/ics/EOVYjD9jk5 >/tmp/calendar.ics +./icstocal /tmp/calendar.ics /tmp/calendar >/dev/null +flashfetch +quand + + +autoload -U colors && colors # Load colors +PS1="%B%(?.0.%F{red}%?) %F{blue}%n %F{green}%~ %f$%b " + + +alias ls="ls -a --color=auto" +alias shut="sudo openrc-shutdown -p now" +alias shutr="sudo openrc-shutdown -r now" +alias ins="sudo pacman -S" +alias uins="sudo pacman -R" +alias c="clear; quand" + +autoload -U compinit +zstyle ':completion:*' menu select +zmodload zsh/complist +compinit +_comp_options+=(globdots) + +setopt autocd + +autoload -Uz vcs_info +precmd_vcs_info() { vcs_info } +precmd_functions+=( precmd_vcs_info ) +setopt prompt_subst +RPROMPT=\$vcs_info_msg_0_ +zstyle ':vcs_info:git:*' formats '%F{cyan}(%b)%f' +zstyle ':vcs_info:*' enable git -- cgit v1.2.3