Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add PostgreSQL rules #241

Merged
merged 1 commit into from
Jan 19, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions rules.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1082,3 +1082,47 @@ rules:
- type: export
key: WGETRC
value: "${XDG_CONFIG_HOME}/wgetrc"

- name: psql_history
dotfile:
name: .psql_history
actions:
- type: migrate
source: ${HOME}/.psql_history
dest: ${XDG_CACHE_HOME}/psql_history
- type: export
key: PSQL_HISTORY
value: ${XDG_CACHE_HOME}/psql_history

- name: psqlrc
dotfile:
name: .psqlrc
actions:
- type: migrate
source: ${HOME}/.psqlrc
dest: ${XDG_CONFIG_HOME}/pg/psqlrc
- type: export
key: PSQLRC
value: ${XDG_CONFIG_HOME}/pg/psqlrc

- name: pgpass
dotfile:
name: .pgpass
actions:
- type: migrate
source: ${HOME}/.pgpass
dest: ${XDG_CONFIG_HOME}/pg/pgpass
- type: export
key: PGPASSFILE
value: ${XDG_CONFIG_HOME}/pg/pgpass

- name: pgservicefile
dotfile:
name: .pg_service.conf
actions:
- type: migrate
source: ${HOME}/.pg_service.conf
dest: ${XDG_CONFIG_HOME}/pg/pg_service.conf
- type: export
key: PGSERVICEFILE
value: ${XDG_CONFIG_HOME}/pg/pg_service.conf