Merge branch 'master' of git.axenov.dev:anthony/dotfiles

This commit is contained in:
2026-04-04 19:58:46 +08:00
4 changed files with 21 additions and 25 deletions

1
.gitignore vendored
View File

@@ -6,3 +6,4 @@
*.tmp
*.tmp*
*.vscdb
.DS_Store

View File

@@ -1,27 +1,24 @@
#!/usr/bin/env bash
set -eo pipefail
# TODO not ready yet
exit
if [[ "$1" == "-h" || "$1" == "--help" ]]; then
cat <<EOF
Usage: $(basename "$0") [-h] [name]
if [ "$1" ]; then
if [ "$1" = "-a" ]; then
docker ps -aq \
| xargs -n 1 docker inspect --format '{{.Name}}{{range .NetworkSettings.Networks}} {{.IPAddress}}{{end}}' \
| sed -e 's#^/##' \
| column -t
elif [ "$1" = "-c" ]; then
docker compose ps -q \
| xargs -n 1 docker inspect --format '{{.Name}}{{range .NetworkSettings.Networks}} {{.IPAddress}}{{end}}' \
| sed -e 's#^/##' \
| column -t
else
docker inspect --format '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' "$1"
docker port "$1"
fi
else
docker ps -q \
| xargs -n 1 docker inspect --format '{{.Name}}{{range .NetworkSettings.Networks}} {{.IPAddress}}{{end}}' \
| sed -e 's#^/##' \
| column -t
Display IP addresses of Docker containers.
Options:
-h, --help Show this help message
Arguments:
name Container name to show specific IP
EOF
exit 0
fi
if [[ -n "$1" ]]; then
docker ps -a --format "{{.ID}} {{.Names}} {{.Ports}}" --filter name="$1"
else
docker ps -a --format "{{.ID}} {{.Names}} {{.Ports}}"
fi

View File

@@ -5,7 +5,6 @@
"workbench.colorTheme": "Atom One Dark",
"workbench.preferredDarkColorTheme": "Atom One Dark",
"workbench.iconTheme": "material-icon-theme",
// "workbench.tree.indent": 10,
"workbench.tree.renderIndentGuides": "always",
"workbench.view.alwaysShowHeaderActions": true,
@@ -138,7 +137,7 @@
// terminal
//----------------------------------------------------------------
"terminal.integrated.fontFamily": "JetBrainsMono Nerd Font, MesloLGS NF, Ubuntu Mono",
"terminal.integrated.fontFamily": "\"JetBrainsMono Nerd Font\", \"MesloLGS NF\", Ubuntu Mono",
"terminal.integrated.fontSize": 13,
"terminal.integrated.cursorStyle": "line",
"terminal.integrated.defaultProfile.linux": "zsh",

View File

@@ -1,5 +1,4 @@
include "%L"
include "/usr/local/share/keyd/keyd.compose"
<Multi_key> <s> <h> <r> <u> <g> : "¯\\_(ツ)_/¯"
<Multi_key> <Cyrillic_ha> <Cyrillic_ze> : "¯\\_(ツ)_/¯" # хз