Jump to content
  • Advertisement
Sign in to follow this  

Save Alias settings/profile BASH shell

This topic is 4762 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm not sure if my subject is correcet for this thread. Anyway, I type a bunch of alias's for example: alias ls='ls -al --color=tty' I'd like to save this so next time I open the Konsole it works. However this is prooving to not be an easy task. Any advice? Maybe I have to set a profile? Speaking of profils, how do I set a current profile.

Share this post

Link to post
Share on other sites
Well I solved the problem myself, shouldn't have made this post in the first place.

But another case where google provided little on the topic of the alias command. I mean lots of info on how to use alias but nothing on how to make it permanent.

Simply modify ur current user's .bashrc for

- Add ur alias lines there, make sure they do not cross 1 line tho.
- close ur shell
- open ur shell

Another tip I couldn't find until I did some deep extensive searching, was how to do complex alias's.


AsteroidCopy='rm *.class; javac Asteroids.java; cp *.class /network/1/Asteroids/'

That pulls out 3 commands in 1. As you can see in my example it removes all the *.class fils, recompiles them, then copies them to the other comps in my network for extensive testing.

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!