From 14ae0d9eeb5bbd47dbbd3566a724342587b1ab82 Mon Sep 17 00:00:00 2001 From: Veit Heller Date: Mon, 22 Sep 2014 18:57:35 +0200 Subject: [PATCH] Added some aliases and a function --- bash_profile | 7 +++++++ zshrc | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/bash_profile b/bash_profile index 00f0059..914ade7 100644 --- a/bash_profile +++ b/bash_profile @@ -2,6 +2,8 @@ export PATH=$PATH:/opt/local/bin:/usr/local/sbin:~/.cabal/bin export MANPATH=$MANPATH:/opt/local/share/man export INFOPATH=$INFOPATH:/opt/local/share/info export PYTHONSTARTUP=~/.pythonrc +alias psg="ps aux | grep -v grep | grep -i -e VSZ -e" +alias ..="cd .." alias gcc="gcc-mp-4.9" alias g++="g++-mp-4.9" alias qmake="/usr/local/Qt-5.3.0/bin/qmake" @@ -58,6 +60,11 @@ extract(){ fi } +mcd(){ +mkdir -p $1 +cd $1 +} + netinfo(){ echo "--------------- Network Information ---------------" /sbin/ifconfig | awk /'inet addr/ {print $2}' diff --git a/zshrc b/zshrc index bcc5e3f..86c2380 100644 --- a/zshrc +++ b/zshrc @@ -21,6 +21,8 @@ export INFOPATH=$INFOPATH:/opt/local/share/info export PYTHONSTARTUP=~/.pythonrc export NODE_PATH=/usr/local/lib/node_modules export TERM=rxvt +alias ..="cd .." +alias psg="ps aux | grep -v grep | grep -i -e VSZ -e" alias gcc="gcc-mp-4.9" alias g++="g++-mp-4.9" alias qmake="/usr/local/Qt-5.3.0/bin/qmake" @@ -96,6 +98,11 @@ extract(){ fi } +mcd(){ + mkdir -p $1 + cd $1 +} + netinfo(){ echo "--------------- Network Information ---------------" /sbin/ifconfig | awk /'inet addr/ {print $2}'