Skip to content

Commit

Permalink
Improved vi support accross shells
Browse files Browse the repository at this point in the history
  • Loading branch information
hanoii committed Apr 12, 2024
1 parent be05aec commit b50c576
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .ddev/addon-metadata/pimp-my-shell/manifest.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: pimp-my-shell
repository: .
version: ""
install_date: "2024-04-12T13:27:44-03:00"
install_date: "2024-04-12T19:42:34-03:00"
project_files:
- web-build/Dockerfile.pimp-my-shell
- homeadditions/.bashrc.d/pimp-my-shell.sh
Expand Down
1 change: 1 addition & 0 deletions .ddev/config.pimp-my-shell.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ webimage_extra_packages:
- libarchive-tools
- lua5.4
- pv
- vim-nox
web_environment:
- COLORTERM=${COLORTERM}
3 changes: 0 additions & 3 deletions .ddev/homeadditions/.bashrc.d/pimp-my-shell.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ esac
# This is so that child processes have appropriate access to this var
export SHELL

# Default $EDITOR to vim
export EDITOR=${DDEV_PIMP_MY_SHELL_EDITOR-/usr/bin/vim}

# ahoy
COMP_WORDBREAKS=${COMP_WORDBREAKS//:}

Expand Down
3 changes: 3 additions & 0 deletions .ddev/web-build/Dockerfile.pimp-my-shell
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,6 @@ USER $uid:$gid
RUN fish -c "curl -sL 'https://raw.githubusercontent.com/jorgebucaran/fisher/main/functions/fisher.fish' | source && fisher install jorgebucaran/[email protected]"
RUN fish -c "fisher install IlanCosman/[email protected]"
USER root:root

# vim
RUN update-alternatives --set editor /usr/bin/vim.nox
1 change: 1 addition & 0 deletions config.pimp-my-shell.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ webimage_extra_packages:
- libarchive-tools
- lua5.4
- pv
- vim-nox
web_environment:
- COLORTERM=${COLORTERM}
3 changes: 0 additions & 3 deletions homeadditions/.bashrc.d/pimp-my-shell.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ esac
# This is so that child processes have appropriate access to this var
export SHELL

# Default $EDITOR to vim
export EDITOR=${DDEV_PIMP_MY_SHELL_EDITOR-/usr/bin/vim}

# ahoy
COMP_WORDBREAKS=${COMP_WORDBREAKS//:}

Expand Down
3 changes: 3 additions & 0 deletions web-build/Dockerfile.pimp-my-shell
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,6 @@ USER $uid:$gid
RUN fish -c "curl -sL 'https://raw.githubusercontent.com/jorgebucaran/fisher/main/functions/fisher.fish' | source && fisher install jorgebucaran/[email protected]"
RUN fish -c "fisher install IlanCosman/[email protected]"
USER root:root

# vim
RUN update-alternatives --set editor /usr/bin/vim.nox

0 comments on commit b50c576

Please sign in to comment.