linux - advanced unix command-line trick -
i want regarding unix command line.
in command line if type command date; konsole should automatically execute ls , execute date. example: if type date interface should ls ; date. can alias want not date every other command also. if don't supply command , press empty enter should execute ls.
i tried confugiring in set prompt variable. didn't got , variable not reloading automatically. need help
and advance thanks,
lakshmi prashanth
are using konsole
terminal emulator , tclsh
interactive shell? if so, former irrelevant , latter interesting tool choice. more likely, running bash interactive shell, in case can add trap on debug. test behavior type:
trap ls debug
after executing in bash, in shell only, ls
executed before every command. if behavior want, set trap in ~/.bashrc
.
note bash specific. other shells have different mechanisms getting behavior.
Comments
Post a Comment