mirror of
https://github.com/swaywm/sway.git
synced 2026-04-17 06:46:32 -04:00
add cmd_env_unset to remove environment variables
This commit is contained in:
parent
8ca45f2538
commit
ca53b3e4eb
5 changed files with 41 additions and 5 deletions
|
|
@ -19,4 +19,10 @@ char **env_create();
|
|||
*/
|
||||
char **env_setenv(char **envp, char *name, char *value);
|
||||
|
||||
/**
|
||||
* Unsets an environment variable in the given environment.
|
||||
* If successful, this will reallocate the entire array.
|
||||
*/
|
||||
char **env_unsetenv(char **envp, char *name);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -126,6 +126,7 @@ sway_cmd cmd_default_border;
|
|||
sway_cmd cmd_default_floating_border;
|
||||
sway_cmd cmd_default_orientation;
|
||||
sway_cmd cmd_env;
|
||||
sway_cmd cmd_env_unset;
|
||||
sway_cmd cmd_exec;
|
||||
sway_cmd cmd_exec_always;
|
||||
sway_cmd cmd_exit;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue