Notes, tips, tutorials, how-tos, etc... All related to Unix-like OS namely FreeBSD and Linux.
My way of giving a bit back to the community. ;)
set complete = enhancecomplete sudo 'n/-l/u/' 'p/1/c/'
% source .cshrc
Fine, but this does not complete the commands that are in the root's $PATH and usually not in the user's, such as /sbin. And these are among the most relevant—things you can't do as a regular user.Unfortunately it seems that complete does not allow a complementary list to be added to the default command list... Any idea to trick it?
Post a Comment