Skip to content

Instantly share code, notes, and snippets.

@HokieGeek
Created June 13, 2016 13:15
Show Gist options
  • Save HokieGeek/664ed2cf48cf1ec52811d78643d94c75 to your computer and use it in GitHub Desktop.
Save HokieGeek/664ed2cf48cf1ec52811d78643d94c75 to your computer and use it in GitHub Desktop.
Script that lets me source my primary aliases in csh
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