-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdoshrc
63 lines (57 loc) · 1.81 KB
/
doshrc
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#
# ./doshrc
#
# When dosh is invoked, it first reads and executes commands from the global
# user file ~/.dosh_profile, if that file exists. After reading that file, it
# reads and executes commands from the current directory file ./doshrc, if that
# file exists. The --no-doshprofile and --no-doshrc options may be used to
# inhibit this behavior.
# Uncomment to specify the shell interpreter dynamically according the
# Dockerfile to be used.
case "$DOSH_DOCKERFILE" in
Dockerfile.alpine) DOSHELL=/bin/ash;;
Dockerfile.zsh) DOSHELL=/bin/zsh;;
Dockerfile.archlinux)
DOSHELL=/bin/bash;;
esac
# Uncomment to use the same shell interpreter in container than the one which
# is currently in use (i.e. host side).
#DOSHELL="$SHELL"
# Uncomment to use the bash interpreter in container.
#DOSHELL=/bin/bash
# Uncomment to save the bash history from the container locally.
#if [ -r "$PWD/.bash_history" ]
#then
# DOSH_DOCKER_RUN_EXTRA_OPTS+=(--volume "$PWD/.bash_history:$HOME/.bash_history")
#fi
# Uncomment to use the ssh settings from host.
#if [ -d "$HOME/.ssh" ]
#then
# DOSH_DOCKER_RUN_EXTRA_OPTS+=(--volume "$HOME/.ssh:$HOME/.ssh")
#fi
#if [ -n "${SSH_AUTH_SOCK:-}" ]
#then
# DOSH_DOCKER_RUN_EXTRA_OPTS+=(--env SSH_AUTH_SOCK)
# DOSH_DOCKER_RUN_EXTRA_OPTS+=(--volume "$SSH_AUTH_SOCK:$SSH_AUTH_SOCK")
#fi
# Uncomment to enable X.
#if [ -n "$DISPLAY" ]
#then
# for env in DISPLAY XAUTHORITY XSOCK
# do
# [ -n "$env" ] || continue
# DOSH_DOCKER_RUN_EXTRA_OPTS+=(--env "$env")
# done
# dotxauthority="${XAUTHORITY:-$HOME/.Xauthority}"
# if [ -e "$dotxauthority" ]
# then
# DOSH_DOCKER_RUN_EXTRA_OPTS+=(--volume "$dotxauthority:$HOME/.Xauthority")
# fi
# unset dotxauthority
# xsock="${XSOCK:-/tmp/.X11-unix}"
# if [ -e "$xsock" ]
# then
# DOSH_DOCKER_RUN_EXTRA_OPTS+=(--volume "$xsock:/tmp/.X11-unix:ro")
# fi
# unset xsock
#fi