Created
June 13, 2016 13:15
-
-
Save HokieGeek/664ed2cf48cf1ec52811d78643d94c75 to your computer and use it in GitHub Desktop.
Script that lets me source my primary aliases in csh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set num_processors=`grep -c processor /proc/cpuinfo | xargs expr 1 +` | |
set f=`mktemp` | |
awk '/NOCSH *$/ { next } /^ *alias/ { sub(/=/, " ", $2); print }' $HOME/.aliases > $f | |
source $f | |
unset num_processors |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment