summaryrefslogtreecommitdiffstats
path: root/cmd-string.c
Commit message (Collapse)AuthorAgeFilesLines
* Read ${X} environment variables in strings and $HOME from the globalnicm2010-12-131-15/+17
| | | | | environment rather than getenv, this allows them to be updated during the configuration file.
* Sync OpenBSD patchset 649:tcunha2010-02-261-16/+4
| | | | | have_arg matches buf so it is no longer necessary, spotted by Tim van der Molen.
* Sync OpenBSD patchset 628:tcunha2010-02-021-3/+2
| | | | Remove unnecessary comparison, pointed out by Tiago Cunha.
* Sync OpenBSD patchset 581:tcunha2009-12-041-2/+2
| | | | | | Massive spaces->tabs and trailing whitespace cleanup, hopefully for the last time now I've configured emacs to make them displayed in really annoying colours...
* Sync OpenBSD patchset 565:tcunha2009-11-281-7/+9
| | | | | | | Get a u_char from the string, otherwise it isn't possible to enter \0377 as it is mistaken for EOF (doh). Also drop an unused argument.
* Sync OpenBSD patchset 559:tcunha2009-11-221-2/+2
| | | | | Use home from struct passwd if HOME is empty as well as if it is NULL, and fix a style nit. Both from Tiago Cunha.
* Sync OpenBSD patchset 541:tcunha2009-11-181-6/+2
| | | | | I made a complete horlicks of the last change, fix it so it doesn't either lead to a double free or free the item after the end of the array.
* Sync OpenBSD patchset 530:tcunha2009-11-131-11/+10
| | | | | | | | Rewrite a confusing loop when freeing the arg array on exit and move the check for argv being NULL, prompted by parfait via deraadt. Also fix some definite brokenness when assigning multiple environment variables in arguments (such as "X=1 Y=2").
* Sync OpenBSD patchset 467:tcunha2009-10-281-21/+21
| | | | tabs are better; ok nicm
* Sync OpenBSD patchset 231:tcunha2009-08-091-14/+16
| | | | | | | | | | | | | | | | Infrastructure and commands to manage the environment for processes started within tmux. There is a global environment, copied from the external environment when the server is started and each session has an (initially empty) session environment which overrides it. New commands set-environment and show-environment manipulate or display the environments. A new session option, update-environment, is a space-separated list of variables which are updated from the external environment into the session environment every time a new session is created - the default is DISPLAY.
* Sync OpenBSD patchset 211:tcunha2009-08-091-1/+4
| | | | | | | | | Add a terminal-overrides session option allowing individual terminfo(5) entries to be overridden. The 88col/256col checks are now moved into the default setting and out of the code. Also remove a couple of old workarounds for xterm and rxvt which are no longer necessary (tmux can emulate them if missing).
* Whoops, chose the wrong one in a conflict. Revert.nicm2009-07-141-5/+2
|
* If it exist, load a system-wide configuration file /etc/tmux.conf before anynicm2009-07-141-2/+5
| | | | user-specified one.
* Expand leading tilde on commands which expect a filename.tcunha2009-07-131-0/+42
|
* Fix two memory leaks when assigning shell variables in configurationnicm2009-07-091-0/+2
| | | | file/command prompt. From Tiago Cunha.
* Restore $Id$ and add script to do so.nicm2009-06-251-1/+1
|
* strdup the input to putenv to avoid in one case passing a string that is laternicm2009-06-251-2/+2
| | | | freed and in the other const strings.
* putenv can be char *.nicm2009-05-151-1/+1
|
* Spacing.nicm2009-05-041-1/+1
|
* Don't leak string arguments and options.nicm2009-02-161-0/+6
|
* Handle "" properly.nicm2009-02-081-2/+14
|
* Support command sequences separated by " ; ". Also clean up command printing.nicm2009-01-181-4/+5
|
* Trim spaces.nicm2009-01-101-1/+1
|
* Even better, use cause.nicm2008-12-101-1/+2
|
* Make window options work the same was as session options, add ↵nicm2008-12-081-2/+3
| | | | mode-fg/mode-bg options, force -g for global on set/show/setw/showw/
* Trim.nicm2008-09-261-8/+8
|
* Comment tweak.nicm2008-08-011-1/+1
|
* == 0 not == NULLnicm2008-07-251-1/+1
|
* Environment variables in configuration file.nicm2008-07-251-17/+126
|
* Handle commented lines.nicm2008-06-191-1/+7
|
* Convert cfg.c to use cmd-string stuff.nicm2008-06-191-1/+3
|
* Command prompt for interactive commands.nicm2008-06-191-0/+171