a
This commit is contained in:
parent
70313a7203
commit
bc49fdcd3f
8 changed files with 53 additions and 18 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -255,3 +255,4 @@ heroic/
|
|||
kwinoutputconfig.json
|
||||
plasmaparc
|
||||
bruno/
|
||||
beekeeper-studio/
|
||||
|
|
|
@ -3,7 +3,6 @@ general.firstdayofweek=sunday
|
|||
appearance.layout=5
|
||||
appearance.compactpanels=yes
|
||||
appearance.defaultpanel=todo
|
||||
appearance.sidebarwidth=30
|
||||
appearance.notifybar=no
|
||||
appearance.headerline=no
|
||||
appearance.eventseparator=no
|
||||
|
@ -12,3 +11,22 @@ appearance.emptyline=no
|
|||
appearance.emptyday=
|
||||
appearance.theme=blue on default
|
||||
format.inputdate=4
|
||||
appearance.calendarview=monthly
|
||||
appearance.todoview=hide-completed
|
||||
appearance.headingpos=right-justified
|
||||
daemon.enable=no
|
||||
daemon.log=no
|
||||
format.notifydate=%a %F
|
||||
format.notifytime=%T
|
||||
format.appointmenttime=%H:%M
|
||||
format.outputdate=%D
|
||||
format.dayheading=%B %e, %Y
|
||||
general.autogc=no
|
||||
general.autosave=yes
|
||||
general.confirmdelete=yes
|
||||
general.multipledays=yes
|
||||
general.periodicsave=0
|
||||
general.systemevents=yes
|
||||
notification.command=printf '\a'
|
||||
notification.notifyall=flagged-only
|
||||
notification.warning=300
|
||||
|
|
|
@ -14,6 +14,13 @@ lvim.plugins = {
|
|||
lvim.colorscheme = "everforest"
|
||||
vim.g.everforest_background = "hard"
|
||||
|
||||
vim.api.nvim_create_autocmd({"BufRead", "BufNewFile"}, {
|
||||
pattern = "calcurse*",
|
||||
callback = function()
|
||||
vim.bo.filetype = "markdown"
|
||||
end,
|
||||
})
|
||||
|
||||
require("config.go")
|
||||
require("config.c")
|
||||
-- require("config.py")
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
export \
|
||||
TERM="xterm-256color" \
|
||||
BROWSER="firefox-hardened" \
|
||||
EDITOR="nvim" \
|
||||
VISUAL="nvim"
|
||||
EDITOR="lvim" \
|
||||
VISUAL="lvim"
|
||||
|
|
|
@ -28,4 +28,5 @@ export \
|
|||
SSH_CONFIG="-F ${XDG_CONFIG_HOME}/ssh/config" \
|
||||
GIT_SSH_COMMAND="ssh -F ${XDG_CONFIG_HOME}/ssh/config" \
|
||||
ZDOTDIR="$XDG_CONFIG_HOME/shell" \
|
||||
NPM_CONFIG_USERCONFIG=$XDG_CONFIG_HOME/npm/npmrc
|
||||
NPM_CONFIG_USERCONFIG=$XDG_CONFIG_HOME/npm/npmrc \
|
||||
IPYTHONDIR="$XDG_CONFIG_HOME/ipython"
|
||||
|
|
|
@ -4,8 +4,8 @@ Host *
|
|||
|
||||
Host home
|
||||
AddressFamily inet
|
||||
#HostName 192.168.100.83
|
||||
HostName tavo.one
|
||||
HostName 192.168.100.83
|
||||
#HostName tavo.one
|
||||
port 22
|
||||
|
||||
Host tavo.one
|
||||
|
|
|
@ -1,5 +1,13 @@
|
|||
set -g base-index 1
|
||||
set -g pane-base-index 1
|
||||
setw -g pane-base-index 1
|
||||
set-option -g renumber-windows on
|
||||
|
||||
set -g status-style bg=default
|
||||
set -g status-right ""
|
||||
set -g status-left ""
|
||||
set -g window-status-format "#[fg=black]#I:#W"
|
||||
set -g window-status-current-format "#[fg=cyan bold]#I:#W"
|
||||
set-option -ga terminal-overrides ",xterm-256color:Tc"
|
||||
|
||||
bind -n M-1 select-window -t 1
|
||||
bind -n M-2 select-window -t 2
|
||||
|
|
|
@ -3,11 +3,11 @@
|
|||
PODMAN_NAME="PostgreSQL"
|
||||
PGSQL_IMAGE="docker.io/library/postgres"
|
||||
|
||||
: "${HOST:=localhost}"
|
||||
: "${PORT:=5455}"
|
||||
: "${PASS:=1234}"
|
||||
: "${USER:=postgres}"
|
||||
: "${DB:=local}"
|
||||
: "${DB_HOST:=localhost}"
|
||||
: "${DB_PORT:=5455}"
|
||||
: "${DB_PASS:=1234}"
|
||||
: "${DB_USER:=postgres}"
|
||||
: "${DB_NAME:=local}"
|
||||
|
||||
if ! command -v podman >/dev/null 2>&1 ; then
|
||||
echo "podman not found in PATH"
|
||||
|
@ -15,7 +15,7 @@ if ! command -v podman >/dev/null 2>&1 ; then
|
|||
fi
|
||||
|
||||
if command -v fuser >/dev/null 2>&1 ; then
|
||||
if fuser "$PORT"/tcp >/dev/null 2>&1 ; then
|
||||
if fuser "$DB_PORT"/tcp >/dev/null 2>&1 ; then
|
||||
echo "Port already in use"
|
||||
exit 1
|
||||
fi
|
||||
|
@ -23,14 +23,14 @@ fi
|
|||
|
||||
if ! podman run \
|
||||
--name "$PODMAN_NAME" \
|
||||
-p "$PORT":5432 \
|
||||
-e POSTGRES_USER="$USER" \
|
||||
-e POSTGRES_PASSWORD="$PASS" \
|
||||
-e POSTGRES_DB="$DB" \
|
||||
-p "$DB_PORT":5432 \
|
||||
-e POSTGRES_USER="$DB_USER" \
|
||||
-e POSTGRES_PASSWORD="$DB_PASS" \
|
||||
-e POSTGRES_DB="$DB_NAME" \
|
||||
--replace \
|
||||
-d \
|
||||
"$PGSQL_IMAGE" 1>&- ; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "postgresql://$USER:$PASS@$HOST:$PORT/$DB"
|
||||
echo "postgresql://$DB_USER:$DB_PASS@$DB_HOST:$DB_PORT/$DB_NAME?sslmode=disable"
|
||||
|
|
Loading…
Reference in a new issue