Reputation: 19
Recently I carried out some work on the Linux Ubuntu terminal. In order to save the work(commands) for future reference I saved the entire terminal text on a document. Can I store that text in an extension other than '.txt' so as to get a similar color scheme when I view it through sublime text?
Upvotes: 0
Views: 248
Reputation: 216
Yes. If you use '.sh', Sublime will automatically recognize the Bash commands when you open the file. Technically, though, you can use whatever file extension you like. You can always go to View > Syntax > Shell Script (Bash), to see Bash syntax highlighting on a file with a different file extension.
Upvotes: 2