Welcome, Guest. Please login or register.

Author Topic: Intergating program into Shell - VI editor  (Read 1998 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline DBAlex

  • Sr. Member
  • ****
  • Join Date: Aug 2005
  • Posts: 304
    • Show all replies
Re: Intergating program into Shell - VI editor
« on: June 27, 2010, 11:42:03 AM »
Quote from: Mark;567502
You can always add a shell alias to the s:Shell-Startup script that will call your editor from its real path using whatever alias you choose.

So, using the VIM: assign mentioned by squidbass for example:
Code: [Select]
Alias vi vim:vim


Or by using its full path, say it's "Work:Productivity/Vim/vim"
Code: [Select]
Alias vi "Work:Productivity/vim/vim"


Now, to edit that text file, you would simply type "vi workbench:misc/text.txt" in your shell.

Yeah I always use shell aliases... just like UNIX hehe (don't tell anyone that though)

I used to have one setup for Python too, so I can just launch Python scripts easily. Maybe I had that or the Python dir was part of where AOS looks for programs... it's PATH, can't remember how to set that though...

EDIT: I think it's something like:

path add vim:vim
Machines:
- A1200, Blizzard 1260 w/ 64MB RAM, 1.2GB HD, PCMCIA WiFi, AGA w/ RGB Adapter, OS3.9
- Pegasos I, G3 600Mhz, 512MB, Radeon 9200se, 80GB HD, AmigaKit WiFi Card, MOS 1.4.5
- Mac Mini, G4 1.5ghz, 512MB (1GB Soon), Radeon 9200 64MB, 80GB HD, OSX 10.5 (Leopard)
- PCs, Laptops... *yawn*... :D