Setting command line aliases for recipes


#1

I was just thinking, I always seem to have to lookup all the folders for my
log files, config directories etc. for all my services, and when it has
been a while then it gets even harder for me to remember.

How can I create aliases for all my service directories so that it is
available when I ssh into the box (in a unobtrusive way).

I guess I just create a file with the aliases, then modify my .bash_profile
by appending my aliases file to it…

suggestions?


#2

I use bashmarks1 with a predefined bookmarks file and set action :create_if_missing in the recipe. This way I have the same things available on every box (all of my coworkers use the same base) and then you can add to them if necessary without your changes being blown away. I drop it in /etc/profile.d/ so it’s available to all users but leave the bookmarks file in their home directories so we don’t share custom bookmarks.

Some of our developers use autojump2 but that requires navigating the file system for it to recognize directories.

On Thursday, November 15, 2012 at 6:10 PM, S Ahmed wrote:

I was just thinking, I always seem to have to lookup all the folders for my log files, config directories etc. for all my services, and when it has been a while then it gets even harder for me to remember.

How can I create aliases for all my service directories so that it is available when I ssh into the box (in a unobtrusive way).

I guess I just create a file with the aliases, then modify my .bash_profile by appending my aliases file to it…

suggestions?


#3

very very slick, thanks Daniel!

On Thu, Nov 15, 2012 at 9:14 PM, Daniel Condomitti daniel@condomitti.comwrote:

I use bashmarks1 with a predefined bookmarks file and set action
:create_if_missing in the recipe. This way I have the same things available
on every box (all of my coworkers use the same base) and then you can add
to them if necessary without your changes being blown away. I drop it in
/etc/profile.d/ so it’s available to all users but leave the bookmarks file
in their home directories so we don’t share custom bookmarks.

Some of our developers use autojump2 but that requires navigating the
file system for it to recognize directories.

On Thursday, November 15, 2012 at 6:10 PM, S Ahmed wrote:

I was just thinking, I always seem to have to lookup all the folders for
my log files, config directories etc. for all my services, and when it has
been a while then it gets even harder for me to remember.

How can I create aliases for all my service directories so that it is
available when I ssh into the box (in a unobtrusive way).

I guess I just create a file with the aliases, then modify my
.bash_profile by appending my aliases file to it…

suggestions?


#4

have you released this recipe by any chance?

On Thu, Nov 15, 2012 at 10:28 PM, S Ahmed sahmed1020@gmail.com wrote:

very very slick, thanks Daniel!

On Thu, Nov 15, 2012 at 9:14 PM, Daniel Condomitti daniel@condomitti.comwrote:

I use bashmarks1 with a predefined bookmarks file and set action
:create_if_missing in the recipe. This way I have the same things available
on every box (all of my coworkers use the same base) and then you can add
to them if necessary without your changes being blown away. I drop it in
/etc/profile.d/ so it’s available to all users but leave the bookmarks file
in their home directories so we don’t share custom bookmarks.

Some of our developers use autojump2 but that requires navigating the
file system for it to recognize directories.

On Thursday, November 15, 2012 at 6:10 PM, S Ahmed wrote:

I was just thinking, I always seem to have to lookup all the folders for
my log files, config directories etc. for all my services, and when it has
been a while then it gets even harder for me to remember.

How can I create aliases for all my service directories so that it is
available when I ssh into the box (in a unobtrusive way).

I guess I just create a file with the aliases, then modify my
.bash_profile by appending my aliases file to it…

suggestions?


#5

@S Ahmed,
did u try this magic_shell cookbook http://community.opscode.com/cookbooks/magic_shell


@millisami
~ Sachin Sagar Rai
Ruby on Rails Developer
http://tfm.com.np
http://nepalonrails.com (http://nepalonrails.tumblr.com)
Sent with Sparrow (http://www.sparrowmailapp.com/?sig)

On Sunday, November 18, 2012 at 4:14 AM, S Ahmed wrote:

have you released this recipe by any chance?

On Thu, Nov 15, 2012 at 10:28 PM, S Ahmed <sahmed1020@gmail.com (mailto:sahmed1020@gmail.com)> wrote:

very very slick, thanks Daniel!

On Thu, Nov 15, 2012 at 9:14 PM, Daniel Condomitti <daniel@condomitti.com (mailto:daniel@condomitti.com)> wrote:

I use bashmarks1 with a predefined bookmarks file and set action :create_if_missing in the recipe. This way I have the same things available on every box (all of my coworkers use the same base) and then you can add to them if necessary without your changes being blown away. I drop it in /etc/profile.d/ so it’s available to all users but leave the bookmarks file in their home directories so we don’t share custom bookmarks.

Some of our developers use autojump2 but that requires navigating the file system for it to recognize directories.

On Thursday, November 15, 2012 at 6:10 PM, S Ahmed wrote:

I was just thinking, I always seem to have to lookup all the folders for my log files, config directories etc. for all my services, and when it has been a while then it gets even harder for me to remember.

How can I create aliases for all my service directories so that it is available when I ssh into the box (in a unobtrusive way).

I guess I just create a file with the aliases, then modify my .bash_profile by appending my aliases file to it…

suggestions?