Compare commits
2 Commits
e180de3a7b
...
9bed5b823f
Author | SHA1 | Date | |
---|---|---|---|
9bed5b823f | |||
641d1c3050 |
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"extras": [
|
"extras": [
|
||||||
"lazyvim.plugins.extras.coding.copilot",
|
"lazyvim.plugins.extras.ai.copilot",
|
||||||
"lazyvim.plugins.extras.dap.core",
|
"lazyvim.plugins.extras.dap.core",
|
||||||
"lazyvim.plugins.extras.lang.go",
|
"lazyvim.plugins.extras.lang.go",
|
||||||
"lazyvim.plugins.extras.lang.svelte",
|
"lazyvim.plugins.extras.lang.svelte",
|
||||||
|
@ -1,7 +1,12 @@
|
|||||||
-- Configure rose-pine and gruvbox-material colorschemes.
|
-- Configure rose-pine and gruvbox-material colorschemes.
|
||||||
return {
|
return {
|
||||||
{ "rose-pine/neovim" },
|
{ "rose-pine/neovim" },
|
||||||
{ "sainnhe/gruvbox-material" },
|
{
|
||||||
|
"sainnhe/gruvbox-material",
|
||||||
|
opts = function()
|
||||||
|
vim.g.gruvbox_material_foreground = "original"
|
||||||
|
end,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
-- Set default colorscheme.
|
-- Set default colorscheme.
|
||||||
"LazyVim/LazyVim",
|
"LazyVim/LazyVim",
|
||||||
|
27
enter.sh
27
enter.sh
@ -10,6 +10,7 @@
|
|||||||
# configurable mount directories #
|
# configurable mount directories #
|
||||||
# =============================================== #
|
# =============================================== #
|
||||||
set -e
|
set -e
|
||||||
|
log() { printf '\e[%sm%s\e[0m %s\n' "${3:-36}" "${2:-○}" "$1"; }
|
||||||
|
|
||||||
# run_args returns the arguments required for the podman run
|
# run_args returns the arguments required for the podman run
|
||||||
# command.
|
# command.
|
||||||
@ -49,7 +50,7 @@ run_args() {
|
|||||||
### MAIN ###
|
### MAIN ###
|
||||||
name="dev"
|
name="dev"
|
||||||
image="git.plabble.org/job79/dev:latest"
|
image="git.plabble.org/job79/dev:latest"
|
||||||
recreate=false
|
fetch=false
|
||||||
|
|
||||||
while test $# -gt 0; do
|
while test $# -gt 0; do
|
||||||
case "$1" in
|
case "$1" in
|
||||||
@ -61,22 +62,24 @@ while test $# -gt 0; do
|
|||||||
shift
|
shift
|
||||||
name="$1"
|
name="$1"
|
||||||
;;
|
;;
|
||||||
--recreate | -r)
|
--fetch | -f)
|
||||||
recreate=true
|
fetch=true
|
||||||
;;
|
;;
|
||||||
*) echo "unknown argument '$1'" ;;
|
*) log "unknown argument '$1'" 'x' 31 ;;
|
||||||
esac
|
esac
|
||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
|
|
||||||
if
|
if "$fetch" = true ] || [ "$(podman container inspect "$name" -f {{.State.Running}})" = 'false' ]; then
|
||||||
[ "$recreate" = true ] ||
|
log "fetching updates..."
|
||||||
{ [ "$(podman container inspect "$name" -f {{.State.Running}})" = 'false' ] &&
|
if [ "$(podman pull -q "$image")" != "$(podman container inspect "$name" -f {{.Image}})" ]; then
|
||||||
[ "$(podman pull -q "$image")" != "$(podman container inspect "$name" -f {{.Image}})" ]; }
|
log "new container image downloaded" '✓' 32
|
||||||
then
|
|
||||||
podman container rm -f -t 1 "$name" 1>/dev/null
|
podman container rm -f -t 1 "$name" 1>/dev/null
|
||||||
podman run -it $(run_args) "$image"
|
podman run -it $(run_args) "$image"
|
||||||
else
|
exit
|
||||||
podman start "$name" 1>/dev/null
|
fi
|
||||||
podman exec -it "$name" bash -l
|
log "no updates available" '✓' 32
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
podman start "$name" 1>/dev/null
|
||||||
|
podman exec -it "$name" bash -l
|
||||||
|
Loading…
Reference in New Issue
Block a user