0

Saw this question: What is the "Templates" folder in the home directory for? But I wanted to know whether I can use this feature with gedit in bash shell? If yes How? If no is there any other way to create templates for gedit?

1
  • Thanks Zaka. I used ur idea to create a bash function to automatically create a file with the template. gtp () { if [ $1==*.py ]; then cat ~/Templates/exn.py > $1; gedit $1; fi }
    – Shinto C V
    Mar 21, 2015 at 11:44

1 Answer 1

0

No, bacause that behaviour is associated to the desktop.

However you can do this:

cp $HOME/Templates/example\ gedit.txt myNewFile.txt
gedit myNewFile.txt

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .