From 4db2b685290972d95cb2bb541fb3e67d5bc03eb0 Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Sat, 1 Feb 2014 07:47:00 +0100 Subject: [PATCH] zsh,bash: move aliases to $XDG_CONFIG_HOME --- Makefile | 4 ++-- bashrc | 2 +- zshrc | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 858dc0d..e5e9da5 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,8 @@ APATH := $(realpath .) FILES := bin -DOTFILES := aliases bash* conky* flexget git* goobookrc msmtp* mutt ncmpcpp offlineimap* profile weechat xbindkeysrc Xresources xprofile zprofile zshrc -CONFIGFILES := compton.conf git mimeo.conf mpd retroarch vim xkb zsh +DOTFILES := bash* conky* flexget git* goobookrc msmtp* mutt ncmpcpp offlineimap* profile weechat xbindkeysrc Xresources xprofile zprofile zshrc +CONFIGFILES := aliases compton.conf git mimeo.conf mpd retroarch vim xkb zsh .PHONY: install $(FILES) $(DOTFILES) $(CONFIGFILES) install: $(FILES) $(DOTFILES) $(CONFIGFILES) diff --git a/bashrc b/bashrc index 3d4527a..2fdf9f9 100644 --- a/bashrc +++ b/bashrc @@ -50,7 +50,7 @@ PS1='[\u@\h \W]\$ ' [ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)" # Alias definitions. -[[ -f ~/.aliases ]] && . ~/.aliases +[[ -f ~/$XDG_CONFIG_HOME/aliases ]] && . ~/$XDG_CONFIG_HOME/aliases # set PATH so it includes user's private bin if it exists [[ -d "$HOME/bin" ]] && PATH="$HOME/bin:$PATH" diff --git a/zshrc b/zshrc index 6babf77..41c2747 100644 --- a/zshrc +++ b/zshrc @@ -40,7 +40,7 @@ typeset -U path # make path a unique array [[ -d /opt/android-sdk ]] && path=($path /opt/android-sdk/platform-tools) # source aliases -[[ -f ~/.aliases ]] && source ~/.aliases +[[ -f ~/$XDG_CONFIG_HOME/aliases ]] && source ~/$XDG_CONFIG_HOME/aliases for alias_file ($ZSH/aliases/*.zsh); do source $alias_file done -- 2.48.1