Moved config files to .config directory

This commit is contained in:
Viyurz 2023-10-23 09:58:32 +02:00
parent 0960109e1a
commit 85442404b3
No known key found for this signature in database
8 changed files with 24 additions and 12 deletions

View file

@ -9,6 +9,8 @@ alias ff="fastfetch"
alias sc="shellcheck -s bash"
alias ip="ip --color=auto"
wget --hsts-file="$XDG_CACHE_HOME/wget-hsts"
# git init --bare $HOME/.dotfiles
# cfg config --local status.showUntrackedFiles no
alias cfg="/usr/bin/git --git-dir=$HOME/.dotfiles --work-tree=$HOME"

3
.config/zsh/.zlogout Normal file
View file

@ -0,0 +1,3 @@
pkill -u "$USER" -9 ssh-agent
wl-copy -c
cliphist wipe

View file

@ -1,7 +1,3 @@
typeset -U path PATH
path=(~/.local/bin $path)
export PATH
# SSH Agent
if [[ ! -f "$XDG_RUNTIME_DIR/ssh-agent.env" ]]; then
pkill -u "$USER" -9 ssh-agent

View file

@ -14,6 +14,7 @@ ENABLE_CORRECTION="true"
plugins=(git-prompt sudo zsh-autosuggestions zsh-shift-select)
ZSH_CACHE_DIR=$HOME/.cache/oh-my-zsh
ZSH_COMPDUMP="$ZSH_CACHE_DIR/.zcompdump"
if [[ ! -d $ZSH_CACHE_DIR ]]; then
mkdir $ZSH_CACHE_DIR
fi
@ -21,24 +22,21 @@ fi
# If not running interactively, don't do anything
[[ $- != *i* ]] && exit
source $HOME/.zaliases
source $ZDOTDIR/.zaliases
# Disable bell
unsetopt autocd beep
# Enable case-insensitive auto completion
autoload -Uz compinit && compinit
zstyle ':completion:*' matcher-list '' 'm:{a-zA-Z}={A-Za-z}'
#autoload -Uz compinit && compinit
#zstyle ':completion:*' matcher-list '' 'm:{a-zA-Z}={A-Za-z}'
# Set prompt
zmodload zsh/mathfunc
#width=$((int( $COLUMNS / 4 )))
width=42
PROMPT="%B%F{198}%n%F{015}@%F{014}%m%F{015}:%F{198}%${width}<..<%~%F{015}> %b%f"
PROMPT="%B%F{198}%n%F{015}@%F{014}%m%F{015}:%F{198}%42<..<%~%F{015}> %b%f"
#autoload -Uz promptinit && promptinit
# History settings
HISTFILE=~/.zhistory
HISTFILE="$XDG_STATE_HOME/zsh/history"
HISTSIZE=10000
SAVEHIST=10000
setopt appendhistory

View file

13
.zshenv
View file

@ -1 +1,14 @@
export EDITOR=vim
export XDG_CONFIG_HOME="$HOME/.config"
export XDG_CACHE_HOME="$HOME/.cache"
export XDG_DATA_HOME="$HOME/.local/share"
export XDG_STATE_HOME="$HOME/.local/state"
export ZDOTDIR="$HOME/.config/zsh"
export XINITRC="$XDG_CONFIG_HOME/X11/xinitrc"
export PYTHONPYCACHEPREFIX="$XDG_CACHE_HOME/python"
typeset -U path PATH
path=(~/.local/bin $path)
export PATH