Switching to Textmate 2

| Comments

Recently I’ve decided to switch from Sublime Text editor to TextMate 2. At the beginning of Rails “era” it was the sexiest text editor in the world. But, at that time, I was a Windows user ;-)

I was inspired by Venkat Subramaniam to make this switch in 2014. Dr. Venkant is using Textmate during his conference live coding for years.

Additional argument for switching is the fact that Textmate 2 is open sourced.

Here is the list of articles which I highly recommend for Textmate newcomers:

Don’t forget to share your TextMate links, article, tips, hacks, etc.

How to Use Block Comments in Bash Script

| Comments

What is the simplest way to define block comment in Bash script?

I’ve selected two approaches for myself:

  • Use here document
1
2
3
4
5
6
7
8
9
#!/usr/bin/env bash

echo "before block comment"
: <<'END'
Some long 
myltiline 
text
END
echo "after block comment"
  • Use “if” false block
1
2
3
4
5
6
7
8
9
#!/usr/bin/env bash

echo "before block comment"
if [ ]; then
Some long
myltiline
text
fi
echo "after block comment"