-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
32 lines (23 loc) · 1.06 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
FROM ghcr.io/carapace-sh/shell-elvish
RUN echo "deb [trusted=yes] https://apt.fury.io/rsteube/ /" \
> /etc/apt/sources.list.d/fury.list
RUN apt-get update && apt-get install -y carapace-bin gh git tmux
RUN curl -L https://github.com/asciinema/asciinema/releases/download/v3.0.0-rc.3/asciinema-x86_64-unknown-linux-gnu \
> /usr/local/bin/asciinema \
&& chmod +x /usr/local/bin/asciinema
RUN echo "eval (carapace _carapace|slurp)" \
>> /root/.config/elvish/rc.elv
RUN mkdir -p /root/.config/carapace \
&& echo "freckles: carapace" \
>> /root/.config/carapace/bridges.yaml
RUN echo "[credential \"https://github.com\"]\n\
helper = !gh auth git-credential\n"\
> /root/.gitconfig
RUN echo "set-option -g default-shell /usr/local/bin/elvish \n\
set-option -g mouse on\n\
bind-key -T root MouseDown1Pane select-pane -t =" \
> /root/.tmux.conf
RUN echo "#!/bin/sh\nexec tmux -u new-session ';' resize-window -x 108 -y 24" \
> /usr/local/bin/tmux-mini \
&& chmod +x /usr/local/bin/tmux-mini
ENV PATH=/freckles/cmd/freckles:$PATH