Moved config files to .config directory
This commit is contained in:
parent
0960109e1a
commit
85442404b3
8 changed files with 24 additions and 12 deletions
|
@ -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
3
.config/zsh/.zlogout
Normal file
|
@ -0,0 +1,3 @@
|
|||
pkill -u "$USER" -9 ssh-agent
|
||||
wl-copy -c
|
||||
cliphist wipe
|
|
@ -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
|
|
@ -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
|
13
.zshenv
13
.zshenv
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue