Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ ENV USER_TERMINAL_CONFIG=/user-terminal-config
# and add hooks to all the files we reference
# This can be overridden by the user mounting a different folder over the top
RUN /root/terminal-config/ensure-user-terminal-config.sh && \
ln -fs $USER_TERMINAL_CONFIG/inputrc /root/.inputrc && \
echo '/root/terminal-config/ensure-user-terminal-config.sh' >> /root/.bashrc && \
echo 'source ${USER_TERMINAL_CONFIG}/bashrc' >> /root/.bashrc && \
echo '/root/terminal-config/ensure-user-terminal-config.sh' > /root/.zshrc && \
echo 'source ${USER_TERMINAL_CONFIG}/zshrc' >> /root/.zshrc
echo 'source ${USER_TERMINAL_CONFIG}/zshrc' >> /root/.zshrc && \
ln -fs $USER_TERMINAL_CONFIG/inputrc /root/.inputrc

# Install uv using the official image
# See https://docs.astral.sh/uv/guides/integration/docker/#installing-uv
Expand Down
14 changes: 14 additions & 0 deletions terminal-config/inputrc-default
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Readline configuration for bash shell.

# Incremental history searching with up and down arrows (C-P and C-N for old
# style navigation).
"\e[A": history-search-backward
"\e[B": history-search-forward

# Control left and right for word movement
"\e[5C": forward-word
"\e[5D": backward-word

# Disable terminal bell, then set to visible if available
set bell-style none
set bell-style visible
18 changes: 10 additions & 8 deletions terminal-config/inputrc-template
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
# Readline configuration for bash shell.
# This inputrc will be linked as /root/.inputrc and used in every terminal launch
# in a devcontainer that uses the ubuntu-devcontainer as a base
# https://github.com/DiamondLightSource/ubuntu-devcontainer

# Incremental history searching with up and down arrows (C-P and C-N for old
# style navigation).
"\e[A": history-search-backward
"\e[B": history-search-forward
# This file is initialized by the devcontainer, but you are then free to edit it

# Control left and right for word movement
"\e[5C": forward-word
"\e[5D": backward-word
# Execute default, opinionated settings:
# https://github.com/DiamondLightSource/ubuntu-devcontainer/blob/main/terminal-config/inputrc-default
# delete this line to remove defaults
$include ~/terminal-config/inputrc-default

# add your override settings for every shell below