fix Termux hardcoded directories in vim, vim-python
This commit is contained in:
parent
c41e10605a
commit
a878e2b206
@ -66,7 +66,8 @@ termux_step_pre_configure() {
|
||||
}
|
||||
|
||||
termux_step_post_make_install() {
|
||||
cp $TERMUX_PKG_BUILDER_DIR/vimrc $TERMUX_PREFIX/share/vim/vimrc
|
||||
sed -e "s%\@TERMUX_PREFIX\@%${TERMUX_PREFIX}%g" $TERMUX_PKG_BUILDER_DIR/vimrc \
|
||||
> $TERMUX_PREFIX/share/vim/vimrc
|
||||
|
||||
# Remove most tutor files:
|
||||
cp $TERMUX_PREFIX/share/vim/vim82/tutor/{tutor,tutor.vim,tutor.utf-8} $TERMUX_PKG_TMPDIR/
|
||||
|
@ -77,7 +77,7 @@ if has('path_extra')
|
||||
endif
|
||||
|
||||
if &shell =~# 'fish$' && (v:version < 704 || v:version == 704 && !has('patch276'))
|
||||
set shell=/data/data/com.termux/files/usr/bin/env\ bash
|
||||
set shell=@TERMUX_PREFIX@/bin/env\ bash
|
||||
endif
|
||||
|
||||
set autoread
|
||||
|
@ -52,7 +52,8 @@ termux_step_pre_configure() {
|
||||
}
|
||||
|
||||
termux_step_post_make_install() {
|
||||
cp $TERMUX_PKG_BUILDER_DIR/vimrc $TERMUX_PREFIX/share/vim/vimrc
|
||||
sed -e "s%\@TERMUX_PREFIX\@%${TERMUX_PREFIX}%g" $TERMUX_PKG_BUILDER_DIR/vimrc \
|
||||
> $TERMUX_PREFIX/share/vim/vimrc
|
||||
|
||||
# Remove most tutor files:
|
||||
cp $TERMUX_PREFIX/share/vim/vim82/tutor/{tutor,tutor.vim,tutor.utf-8} $TERMUX_PKG_TMPDIR/
|
||||
|
@ -77,7 +77,7 @@ if has('path_extra')
|
||||
endif
|
||||
|
||||
if &shell =~# 'fish$' && (v:version < 704 || v:version == 704 && !has('patch276'))
|
||||
set shell=/data/data/com.termux/files/usr/bin/env\ bash
|
||||
set shell=@TERMUX_PREFIX@/bin/env\ bash
|
||||
endif
|
||||
|
||||
set autoread
|
||||
|
Loading…
Reference in New Issue
Block a user