Skip to content

Instantly share code, notes, and snippets.

@jerguslejko
Last active June 18, 2019 16:00
Show Gist options
  • Select an option

  • Save jerguslejko/4d87093fd4f06de834bc29d34891a1d6 to your computer and use it in GitHub Desktop.

Select an option

Save jerguslejko/4d87093fd4f06de834bc29d34891a1d6 to your computer and use it in GitHub Desktop.
set -g base-index 1
set-window-option -g mode-keys vi
bind r new-session \;\
run-shell "tmux list-sessions | grep -v attached | awk -F: '{print $1}' | xargs -n 1 tmux kill-session -t" \;\
run-shell 'USER=root make kill-qemu > /dev/null || true' \;\
run-shell 'USER=root make kill-gdb > /dev/null || true' \;\
run-shell 'USER=root make kill-console > /dev/null || true' \;\
if-shell 'tmux select-window -t gdb' 'kill-window -t gdb' '' \;\
if-shell 'tmux select-window -t qemu' 'kill-window -t qemu' '' \;\
if-shell 'tmux select-window -t console' 'kill-window -t console' '' \;\
new-window -n gdb "make launch-gdb" \;\
new-window -n qemu "make launch-qemu" \;\
new-window -n console "sleep 5 && make launch-console" \;\
select-window -t 2
FROM ubuntu:latest
ENV LINARO_RELEASE_URL https://releases.linaro.org/components/toolchain/binaries/5.1-2015.08/arm-eabi/gcc-linaro-5.1-2015.08-x86_64_arm-eabi.tar.xz
RUN apt-get update \
&& apt-get install -y make wget tmux xz-utils libpython2.7 qemu-system-arm telnet psmisc netcat \
&& rm -rf /var/lib/apt/lists/*
RUN wget -q -O /tmp/linaro.tar.xz ${LINARO_RELEASE_URL} \
&& tar xf /tmp/linaro.tar.xz -C /usr/local
@jerguslejko
Copy link
Author

alias

concurrent() {
    docker run -it --rm -w /app -v $(pwd):/app -v /Users/jergus/Code/concurent-computing/.tmux.conf:/root/.tmux.conf concurrent tmux
}

@DavidManda
Copy link

If you are using windows:
docker run -it --rm -w /app -v %cd%:/app -v /Users/jergus/Code/concurent-computing/.tmux.conf:/root/.tmux.conf concurrent tmux

@jerguslejko
Copy link
Author

but you're now using windows @DavidManda

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment