mirror of
https://github.com/iridakos/goto.git
synced 2025-05-15 23:10:35 -07:00
Merge pull request #57 from brennanfee/baf-respect-xdg-config-home
feat!: Changing default config to XDG_CONFIG_HOME
This commit is contained in:
commit
77dc8a9e82
4
goto.sh
4
goto.sh
@ -1,5 +1,6 @@
|
||||
# shellcheck shell=bash
|
||||
# shellcheck disable=SC2039
|
||||
# SOURCE: https://github.com/iridakos/goto
|
||||
# MIT License
|
||||
#
|
||||
# Copyright (c) 2018 Lazarus Lazaridis
|
||||
@ -74,7 +75,8 @@ goto()
|
||||
|
||||
_goto_resolve_db()
|
||||
{
|
||||
GOTO_DB="${GOTO_DB:-$HOME/.goto}"
|
||||
local CONFIG_DEFAULT="${XDG_CONFIG_HOME:-$HOME/.config/goto}"
|
||||
GOTO_DB="${GOTO_DB:-$CONFIG_DEFAULT}"
|
||||
touch -a "$GOTO_DB"
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user