It would be nice if when I open a console it has a .bashrc configured from my proflie that I might load.
So tired of typing ls -l for my alias ll
It would be nice if when I open a console it has a .bashrc configured from my proflie that I might load.
So tired of typing ls -l for my alias ll
short version
In console, you can add files through nano, vim, and emacs. Then source them!
longer version
vi .bashrc
, hit the letter i
to enter insert mode, add your function or alias ll='ls -l'
, and exit vim (esc
then write the file and quit with by typing :wq
). Once you’re back in the terminal source .bashrc
and the new shortcut works!
thoughts
The /app directory that the console starts up in is your home directory, so that’s where you want to add the file.