-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.functions
More file actions
27 lines (24 loc) · 727 Bytes
/
.functions
File metadata and controls
27 lines (24 loc) · 727 Bytes
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
#!/bin/bash
# Podman aliased as Docker if latter not installed
if ! type docker &> /dev/null; then
export DOCKER_HOST="unix://$(podman machine inspect --format '{{.ConnectionInfo.PodmanSocket.Path}}')"
alias docker="podman"
fi
detect-dark-mode() {
interfaceStyle=`defaults read -g AppleInterfaceStyle 2>/dev/null`
if [ "$interfaceStyle" = "Dark" ]; then
export BACKGROUND=dark
else
export BACKGROUND=light
fi
if [ "$TERM" = 'xterm-kitty' ]; then
case $BACKGROUND in
"light")
kitty @ set-colors -a -c "$HOME/.config/kitty/base16/colors/base16-tomorrow-256.conf"
;;
"dark")
kitty @ set-colors -a -c "$HOME/.config/kitty/base16/colors/base16-tomorrow-night-eighties-256.conf"
;;
esac
fi
}