1
0
mirror of https://github.com/frebib/dotfiles.git synced 2024-06-14 12:57:23 +00:00

Improve zsh variable usage

This commit is contained in:
Joe Groocock 2016-09-01 14:16:13 +01:00
parent 96a00e61d1
commit 962459356b
2 changed files with 8 additions and 2 deletions

View File

@ -2,7 +2,8 @@ export LC_ALL=en_GB.UTF-8
export LANG=en_GB.UTF-8
export LC_NUMERIC=en_GB
export DOTFILES=~/.config/dotfiles
export CONFIG_DIR="${XDG_CONFIG_HOME:-$HOME/.config}"
export DOTFILES=$CONFIG_DIR/dotfiles
export PATH="${PATH}:$DOTFILES/scripts"
export XDG_CURRENT_DESKTOP="GNOME" # Fixes xdg-open

7
.zshrc
View File

@ -7,7 +7,12 @@ ZSH=/usr/share/oh-my-zsh
ZSH_THEME="fishy"
DISABLE_AUTO_UPDATE="true"
HISTFILE=~/.config/zsh-histfile
CONFIG_DIR="${XDG_CONFIG_HOME:-$HOME/.config}"
ZSH_CONFIG_DIR=$CONFIG_DIR/zsh
ZSH_CACHE_DIR=$CONFIG_DIR/oh-my-zsh/cache
mkdir -p $ZSH_CACHE_DIR $ZSH_CONFIG_DIR
HISTFILE=$ZSH_CONFIG_DIR/histfile
HISTSIZE=100000
SAVEHIST=100000
setopt appendhistory autocd extendedglob