Skip to content

Commit

Permalink
set terminal window title
Browse files Browse the repository at this point in the history
  • Loading branch information
netblue30 committed Jan 23, 2016
1 parent 2414ce3 commit 1ab4535
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/firejail/env.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,9 @@ void env_defaults(void) {
//export PS1='\[\e[1;32m\][\u@\h \W]\$\[\e[0m\] '
if (setenv("PROMPT_COMMAND", "export PS1=\"\\[\\e[1;32m\\][\\u@\\h \\W]\\$\\[\\e[0m\\] \"", 1) < 0)
errExit("setenv");

// if this is a terminal, set window title
printf("\033]0;Firejail\007\n");
}

// parse and store the environment setting
Expand Down

0 comments on commit 1ab4535

Please sign in to comment.