mirror of
https://github.com/iridakos/goto.git
synced 2025-05-15 23:10:35 -07:00
feat!: Changing default config to XDG_CONFIG_HOME
BREAKING CHANGE: The default config file has moved to $XDG_CONFIG_HOME/goto
This commit is contained in:
parent
7ee8375853
commit
b796e5c7f3
4
goto.sh
4
goto.sh
@ -1,5 +1,6 @@
|
|||||||
# shellcheck shell=bash
|
# shellcheck shell=bash
|
||||||
# shellcheck disable=SC2039
|
# shellcheck disable=SC2039
|
||||||
|
# SOURCE: https://github.com/iridakos/goto
|
||||||
# MIT License
|
# MIT License
|
||||||
#
|
#
|
||||||
# Copyright (c) 2018 Lazarus Lazaridis
|
# Copyright (c) 2018 Lazarus Lazaridis
|
||||||
@ -74,7 +75,8 @@ goto()
|
|||||||
|
|
||||||
_goto_resolve_db()
|
_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"
|
touch -a "$GOTO_DB"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user