Author: Junner
Date: 1/19/2025
I want to make three things:
ls
as ls -la
with colorcls
as clear
'cause I'm a windows userq
as exit
To asjust or add keybinds, we need to check what out shell is using first.
And if it is /usr/bin/zsh
, then you're using Z shell (zsh)
. And if you see /bin/bash
, that is the bash shell
.
If you're using zsh
:
If you're using bash
:
ls
as ls -la --color
Find the alias ls='ls --color=auto'
.
Edit it to:
cls
as clear
Add this following line at the end of your file:
q
as exit
Here we learned this syntax.
After saving the file (usually a ctrl+x
shortcut if using nano, and ESC
>:wq
for vim)
For zsh
:
For bash
Tips:
There are two different shell setting files for root and User. One is at /root/.zshrc
and another /home/<Username>/.zshrc
. And you can edit /root/.zshrc
after sudo -i
.