mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
FIX: Execute command in terminal (OS X)
This commit is contained in:
parent
c9958c17dc
commit
591d1cd6fd
2 changed files with 3 additions and 8 deletions
|
|
@ -18,13 +18,8 @@ echo "clear" >> $SCRIPT_FILE
|
|||
printf -v DIR "%q" "$(pwd)"
|
||||
echo "cd $DIR" >> $SCRIPT_FILE
|
||||
|
||||
# Format target command line
|
||||
CMD=
|
||||
for VAR in "$@"
|
||||
do
|
||||
printf -v CMD "$CMD %q" "$VAR"
|
||||
done
|
||||
echo "${CMD:1}" >> "$SCRIPT_FILE"
|
||||
# Copy over target command line
|
||||
echo "$@" >> $SCRIPT_FILE
|
||||
|
||||
# Make executable
|
||||
chmod +x "$SCRIPT_FILE"
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ const
|
|||
RunTermParams = '';
|
||||
RunInTerm = ''; // default run in terminal command
|
||||
RunInTermStayOpenCmd = '%COMMANDER_PATH%/scripts/terminal.sh'; // default run in terminal command AND Stay open after command
|
||||
RunInTermStayOpenParams = '{command}';
|
||||
RunInTermStayOpenParams = '''{command}''';
|
||||
RunInTermCloseCmd = ''; // default run in terminal command AND Close after command
|
||||
RunInTermCloseParams = '';
|
||||
MonoSpaceFont = 'Monaco';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue