From ff0ce7fe92f0f40c9a5a659d7fbded2641e40d83 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Wed, 7 Mar 2018 14:55:31 -0500 Subject: [PATCH] Move command-specific aliases sourcing into general aliases --- .aliases/general | 9 +++++++++ .zshrc | 11 +---------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.aliases/general b/.aliases/general index debe1f6..230ab3f 100644 --- a/.aliases/general +++ b/.aliases/general @@ -15,3 +15,12 @@ alias irc='ssh ag tmux a -t irc' #quick alias for enabling bluetooth alias ebluetooth="sudo modprobe btusb;ssy start bluetooth;blueman-manager" + +# Command Specific Aliases +for i in $HOME/.aliases/command-specific/* +do + if hash $(basename $i) 2>/dev/null + then + source $i + fi +done diff --git a/.zshrc b/.zshrc index 468cda0..d77734f 100644 --- a/.zshrc +++ b/.zshrc @@ -19,16 +19,7 @@ antigen bundles </dev/null - then - source $i - fi -done - -# General Aliases +# Source aliases source $HOME/.aliases/general # Various Options