diff options
| author | Andrew Guschin <saintruler@gmail.com> | 2021-09-05 14:19:51 +0400 |
|---|---|---|
| committer | Andrew Guschin <saintruler@gmail.com> | 2021-09-05 14:19:51 +0400 |
| commit | 2f6a0e3d3693cb00f17530459c95073aeaed15c6 (patch) | |
| tree | c649dadb44e937da55ad4b44a5f8f01d08e0c5b0 /.config/zsh/.zshrc | |
| parent | f5263aeacb5dbcdb1f3d6ae218b0069334654089 (diff) | |
Added several variables for XDG compliance
Diffstat (limited to '.config/zsh/.zshrc')
| -rw-r--r-- | .config/zsh/.zshrc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index 19b0c19..e4d366c 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -1,7 +1,7 @@ # enable color support of ls and also add handy aliases if [ -x /usr/bin/dircolors ]; then test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" - alias ls='ls --color=auto' + alias ls='ls --color=auto --group-directories-first' alias gcc='gcc -fdiagnostics-color=always' alias grep='grep --color=auto' alias fgrep='fgrep --color=auto' @@ -21,6 +21,12 @@ alias dotadd="/usr/bin/git --git-dir='$HOME/.dotfiles' --work-tree='$HOME' add alias vim="nvim" alias e="$EDITOR" +# XDG aliases +alias yarn='yarn --use-yarnrc "$XDG_CONFIG_HOME/yarn/config"' +alias wget='wget --hsts-file="$XDG_CACHE_HOME/wget-hsts"' +alias sqlite3='sqlite3 -init "$XDG_CONFIG_HOME"/sqlite3/sqliterc' + + # ZSH config HISTFILE=~/.cache/zsh/histfile HISTSIZE=1000 |