You are not logged in.

#26 2014-03-30 05:59:20

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,920
Website

Re: Expedient way to move around the Linux CLI

What about instead of 'add' use '+' ? Less typing and quicker in creating bookmarks. Also '-' for deleting ones that are no longer used. Not sure it would be of any use but I would like to see where I have jumped too, meaning possibly echo pwd so I am aware of exactly where I am.


Mr Green I like Landuke!

Offline

#27 2014-03-30 07:40:06

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,920
Website

Re: Expedient way to move around the Linux CLI

Quickly coded this

function jarvis_delete {
  echo "Type an alias you wish to delete, or ^C to quit:"
  read delete_alias
  # now find the alias you wish to delete
  sed -i "/^${delete_alias}=/d" $JARVIS_HOME"/.jarvis"
}
....
# add to case
 "-") jarvis_delete;;

Mr Green I like Landuke!

Offline

#28 2014-03-30 07:40:39

kasprosian
Member
Registered: 2013-08-02
Posts: 28

Re: Expedient way to move around the Linux CLI

oh nice, didn't think of that! + makes a lot of sense. I'm going to put in "echo $PWD" and "+". The "-" will take slightly more effort, but I'll do that one soon too.

Offline

#29 2014-03-30 07:41:51

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,920
Website

Re: Expedient way to move around the Linux CLI

See above post ....


Mr Green I like Landuke!

Offline

#30 2014-03-30 07:53:05

kasprosian
Member
Registered: 2013-08-02
Posts: 28

Re: Expedient way to move around the Linux CLI

I even color coded the cwd! lol...

aguo@unix4:~$ j ml
/afs/andrew.cmu.edu/usr9/aguo/Documents/10605
aguo@unix4:~/Documents/10605$

except that /afs/[...] is color coded in blue smile

Offline

#31 2014-03-30 07:53:41

kasprosian
Member
Registered: 2013-08-02
Posts: 28

Re: Expedient way to move around the Linux CLI

Oh ok, I just got the code for delete. gimme a sec.

Offline

#32 2014-03-30 08:00:15

kasprosian
Member
Registered: 2013-08-02
Posts: 28

Re: Expedient way to move around the Linux CLI

Updated! Gotta go to sleep right now, but I'll update the README first thing in the morning.

Offline

#33 2014-03-30 14:46:52

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,920
Website

Re: Expedient way to move around the Linux CLI

Feature request, this is from Arch wiki

https://wiki.archlinux.org/index.php/Ba … _ls_in_one

j l? j cl? maybe


Mr Green I like Landuke!

Offline

#34 2014-03-30 15:33:05

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,334

Re: Expedient way to move around the Linux CLI

It has been suggested that this thread might more easily be handled in a private email exchange, with a summary posted here instead of the running dialog.
Do what makes sense.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#35 2014-03-30 16:02:44

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,920
Website

Re: Expedient way to move around the Linux CLI

I was only trying to help but I understand....


Mr Green I like Landuke!

Offline

Board footer

Powered by FluxBB