From: Samir Benmendil Date: Sat, 1 Feb 2014 06:47:00 +0000 (+0100) Subject: zsh,bash: move aliases to $XDG_CONFIG_HOME X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/4db2b685290972d95cb2bb541fb3e67d5bc03eb0 zsh,bash: move aliases to $XDG_CONFIG_HOME --- 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