Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Distribution: anything debian based, long live apt-get
Posts: 230
Rep:
Autocomplete my username...
Is there anyway to autocomplete typing in your username......on my debian box, my username is the same as on this forum, fatrandy13....when typing commands like 'ps -u fatrandy13' i would like to be able to just type fat and hit tab, like i would for a program or cd-ing into another directory....
You could always just assign it to a variable as follows:
u=fatrandy13;export u
From then on any time you want to reference "fatandy" you type "$u" instead.
On your initial login you'd need to type in fatrandy because you haven't defined a shell environment yet but once you were logged in you could use it. You could make it globally available (for bash, sh and ksh) by adding the above to /etc/profile. Then all logins with those shells would inherit that environment variable.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.