Linux: Aliases
-
@alex.olynyk said:
@scottalanmiller How do make a permanent alias? For example I want to shorten clear to cls.
You can just use ctrl+l then you don't even need the alias.
-
In order for me to properly remove the sample "go2t" alias I had to use
unalias go2t alias alias ls='ls --color=auto'
Prior to unalias I had
alias alias go2t='' alias ls='ls --color=auto'
-
@DustinB3403 Thanks. OP has been fixed.
-
Instead of just using aliases, set your home directory in your PATH before /usr/bin/local and create replacement programs to irritate anyone using your user account... that's what I do for fun on my personal machine.
-
@tonyshowoff said in Linux: Aliases:
Instead of just using aliases, set your home directory in your PATH before /usr/bin/local and create replacement programs to irritate anyone using your user account... that's what I do for fun on my personal machine.
If it's just your local machine..... why not do that system wide? (Apparently I'm feeling especially evil tonight.)
-
You know just because I hate having to type "clear" every time... every linux system I have is getting the "cls" alias!
-
@DustinB3403 said in Linux: Aliases:
You know just because I hate having to type "clear" every time... every linux system I have is getting the "cls" alias!
You can just do ctrl+l
-
@johnhooks said in Linux: Aliases:
@DustinB3403 said in Linux: Aliases:
You know just because I hate having to type "clear" every time... every linux system I have is getting the "cls" alias!
You can just do ctrl+l
And have to remember yet another keyboard shortcut?!
-
@DustinB3403 said in Linux: Aliases:
@johnhooks said in Linux: Aliases:
@DustinB3403 said in Linux: Aliases:
You know just because I hate having to type "clear" every time... every linux system I have is getting the "cls" alias!
You can just do ctrl+l
And have to remember yet another keyboard shortcut?!
SOME of us had nothing BUT keyboard shortcuts to work with at one point Seriously, real, physical RS-232 terminals with 64 keys were no fun! I can't even find pictures of the one I was stuck with, it was numbers, letters, and a ctrl key.
-
@DustinB3403 said in Linux: Aliases:
@johnhooks said in Linux: Aliases:
@DustinB3403 said in Linux: Aliases:
You know just because I hate having to type "clear" every time... every linux system I have is getting the "cls" alias!
You can just do ctrl+l
And have to remember yet another keyboard shortcut?!
ctrl + l (L) is pretty universal for clear screen in the POSIX-compliant world, it's really about learning standard short cuts, like ctrl + k is delete line, ctrl + c is SIGINT, hell the latter even works in MSDOS and PowerShell.