Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Per Bothner
specifications
Commits
54a8fa01
Commit
54a8fa01
authored
Oct 08, 2019
by
Per Bothner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tweak to bash and zsh scripts.
parent
76c72228
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
15 deletions
+3
-15
proposals/prompts-data/shell-integration.bash
proposals/prompts-data/shell-integration.bash
+0
-10
proposals/prompts-data/shell-integration.zsh
proposals/prompts-data/shell-integration.zsh
+0
-3
proposals/semantic-prompts.md
proposals/semantic-prompts.md
+3
-2
No files found.
proposals/prompts-data/shell-integration.bash
View file @
54a8fa01
#source /home/bothner/DomTerm/tools/bash-preexec.sh
thisfile
=
"
$BASH_SOURCE
"
case
"
$thisfile
"
in
""
)
echo
"installation error - can't find path to
$0
"
;
exit
-1
;;
/
*
)
;;
*
)
thisfile
=
"
$PWD
/
$thisfile
"
;;
esac
while
test
-L
"
$thisfile
"
;
do
thisfile
=
$(
readlink
-f
"
$thisfile
"
)
;
done
source
`
dirname
"
$thisfile
"
`
/bash-preexec.sh
_prompt_executing
=
""
function
__prompt_precmd
()
{
local
ret
=
"
$?
"
...
...
proposals/prompts-data/shell-integration.zsh
View file @
54a8fa01
#PS1='\[\e]133;P\a\]'$PS1'\[\e]133;B\a\e]122;> \a\]'
#PS1='\[\e]133]A;repaint;aid='"$BASHPID"'\a\e]133;P\a\]'$PS1'\[\e]133;B\a\e]122;> \a\]'
_prompt_executing
=
""
function
__prompt_precmd
()
{
local
ret
=
"
$?
"
...
...
proposals/semantic-prompts.md
View file @
54a8fa01
...
...
@@ -326,9 +326,10 @@ it doesn't have a way to specify a marker.
## Bash shell
If you use
[
the Bourne-Again SHell (bash)
](
https://www.gnu.org/software/bash/
)
use
[
this initialization script
](
./prompts-data/shell-integration.bash
)
.
`source`
[
this initialization script
](
./prompts-data/shell-integration.bash
)
.
It depends on the
[
bash-preexec.sh script
](
./prompts-data/bash-preexec.sh
)
from
[
this site
](
https://github.com/rcaloras/bash-preexec
)
.
from
[
this site
](
https://github.com/rcaloras/bash-preexec
)
,
which you should
`source`
first.
Bash has very limited support for multi-line input editing.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment