Skip to content

Commit

Permalink
[FIX] refactored to get nicer indentation on preview of scriptfile
Browse files Browse the repository at this point in the history
  • Loading branch information
budRich committed Jul 28, 2022
1 parent 33c5352 commit 13d800e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions func/create_script_file.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,11 @@ create_script_file() {
# to update the title to USER@HOST:PWD
# which overwrite i3terms setting of the title
[[ $_shell =~ bash && ${conf[auto_set_title],,} =~ true|yes ]] \
&& echo ' --rcfile <( echo unset PROMPT_COMMAND
[[ -f ~/.bashrc ]] && cat ~/.bashrc )'
&& printf '%s\n' \
' --rcfile <(' \
' echo unset PROMPT_COMMAND' \
' [[ -f ~/.bashrc ]] && cat ~/.bashrc' \
')'
fi >> "$_temp_file"

chmod +x "$_temp_file"
Expand Down

0 comments on commit 13d800e

Please sign in to comment.