From aefc0130bdc6227bf468d33954aae6f81a7a9554 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Thu, 22 Mar 2018 10:50:10 -0700 Subject: [bash] some clean up / new aliases --- bashrc | 25 +++++-------------------- 1 file changed, 5 insertions(+), 20 deletions(-) (limited to 'bashrc') diff --git a/bashrc b/bashrc index 025b6f1..0d2e21d 100755 --- a/bashrc +++ b/bashrc @@ -1,4 +1,4 @@ -export EDITOR="emacsclient -nw" +export EDITOR="emacsclient" export HISTFILE= export LANG="en_US.UTF-8" export LC_ALL="$LANG" @@ -12,25 +12,10 @@ export GOPATH="${HOME}/gocode" # prompts export PS1="\h:\w % " -alias cp="cp -i" -alias l="ls" -alias la="ls -a" -alias ll="ls -lh" -alias lt="ls -lhtr" -alias mv="mv -i" -alias rm="rm -i" - -alias upload-transactions='smpl-transactions --project fcuny-finance --dataset finance' - -# Twitter aliases -alias gobastion="gcloud compute ssh bastion" -alias gocsnest="ssh -A csnest2.smf1.twitter.com" -alias goebnest="ssh -A eventbus@nest.smfc.twitter.com" -alias goipmi="ssh -A ipmibastion1.atla.twitter.com" -alias gonest="ssh -A nest.smfc.twitter.com" -alias gotwdevbox="ssh -A 172.25.31.131" -alias gohomedevbox="ssh -A 192.168.86.157" -alias gomesosbuild="ssh -A smf1-egu-15-sr1.prod.twitter.com" +RC_DIR=$(dirname $(readlink ${BASH_SOURCE[0]})) + +[[ -s "${RC_DIR}/rcs/aliases" ]] && source "${RC_DIR}/rcs/aliases" +[[ -s "${RC_DIR}/rcs/twitter.sh" ]] && source "${RC_DIR}/rcs/twitter" # finally, build the path and source a few files __add_to_path_if_exists() { -- cgit 1.4.1