I hereby claim:
- I am johngraham262 on github.
- I am johngraham262 (https://keybase.io/johngraham262) on keybase.
- I have a public key whose fingerprint is ABE3 59D4 73A9 3AF5 2EA8 FF3C 0FEA 5C80 76E5 B222
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
# gsr = Git Search Replace | |
gsr() { | |
search_string=$1 | |
replace_string=$2 | |
if [ -z $search_string ] || [ -z $replace_string ] | |
then | |
echo "-- Git Search & Replace (gsr)" | |
echo "-- usage: gsr search_string replace_string" | |
else | |
git grep -l $search_string | xargs sed -i '' "s/$search_string/$replace_string/g" |
# Add the following lines of code to your `~/.bash_profile`, | |
# and then run `source ~/.bash_profile` to be able to execute | |
# this from the command line. | |
openx() { | |
fileToOpen=''; | |
for file in `find . -maxdepth 1 -name *.xcworkspace`; do | |
fileToOpen=$file | |
done |