Tagged Questions
1
vote
2answers
58 views
Configure bash to execute command with last argument when no argument was provided
I would like to configure bash so that when I execute command (preferably from a list of commands, not any command) without an argument, it takes the argument of previous command.
So, for example I ...
2
votes
3answers
249 views
Substitute placeholders in template
Say I have a shell configuration file config like this:
HOST=localhost
PORT=8080
Now I have a template template like this:
The host is <%= @HOST %>
The port is <%= @PORT %>
How do I ...
8
votes
1answer
2k views
How do I set a user's default .bashrc file?
On Ubuntu 10.4 I have edited the /etc/bash.bashrc file to set some variables like the command history size (HISTSIZE=5000), however if I create a new users Ubuntu by default gives them a .bashrc file ...
3
votes
4answers
1k views
How do I configure mutt to display the date header in my local time zone in the pager?
When I view a message in the pager mutt displays the time in the Date header in UTC rather than my local time zone. The index view displays the local time correctly. I found this old mailing list post ...
6
votes
2answers
972 views
How to refresh all bash shells using a command/script?
Whenever I modify my .bashrc file, I have to go to each bash shell and source it again to effect the changes.
Is there a better way to do this? Some command that run once will automatically do a ...
54
votes
2answers
3k views