Skip to content

Commit

Permalink
Spaces in filenames support for openx / xcp
Browse files Browse the repository at this point in the history
  • Loading branch information
fbartho committed Oct 30, 2018
1 parent 7235b0a commit 20917c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .aliases.bash
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ alias rmnonsvn="svn status | grep ? | awk '{print $2}' | xargs rm -rf"
# alias xcp="if [ \"$(ls *.xcworkspace 2> /dev/null | wc -l)\" != \" 0\" ]; then open *.xcworkspace; else open *.xcodeproj; fi"
openx() {
fileToOpen='';
for file in `find . -maxdepth 1 -name *.xcworkspace`; do
find . -maxdepth 1 -name *.xcworkspace -print0 | while IFS= read -r -d '' file; do
fileToOpen=$file
done

Expand All @@ -33,7 +33,7 @@ openx() {
echo $fileToOpen
open $fileToOpen
else
for file in `find . -maxdepth 1 -name *.xcodeproj`; do
find . -maxdepth 1 -name *.xcodeproj -print0 | while IFS= read -r -d '' file; do
fileToOpen=$file
done

Expand Down

0 comments on commit 20917c7

Please sign in to comment.