Running a command from .profile?
So i have exported my git profiles to .profile so i don't have to remember the directory every time from an emacs bash shell
I have a computer with very little hd and i run this command a lot ...
Code:
du -a <dir> | sort -n -r | head -n 20
basically, it ranks folders in '/' in order of size.
I want to run this command by just typing ...
where the $SIZE command would run the command above, and the '/var' would be the directory variable.
Looked on google. And in the emacs docs. can't find a solution. Any old hands out there know a little bash scripting and can help me out?
I wish my computer would do what I want it to do - not what I tell it to do.
Bookmarks