Use xdgMigrate everywhere
This commit is contained in:
parent
5e69507f94
commit
4d7492c094
12
atom
12
atom
@ -46,8 +46,6 @@ declare -r \
|
|||||||
\
|
\
|
||||||
oldIFS="$IFS"
|
oldIFS="$IFS"
|
||||||
|
|
||||||
cffile="$HOME/.atom/atom.cfg"
|
|
||||||
|
|
||||||
LC_ALL=C
|
LC_ALL=C
|
||||||
|
|
||||||
shopt -s extglob
|
shopt -s extglob
|
||||||
@ -59,6 +57,15 @@ do
|
|||||||
source "$function"
|
source "$function"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
if ! [[ -f "${XDG_CONFIG_HOME:-$HOME/.config}/AtOM/atom.cfg" ]] \
|
||||||
|
&& [[ -f "$HOME/.atom/atom.cfg" ]]
|
||||||
|
then
|
||||||
|
echo "Configuration found in legacy location $HOME/.atom/atom.cfg."\
|
||||||
|
"Migrating configuration and data to XDG standard"
|
||||||
|
xdgMigrate
|
||||||
|
fi
|
||||||
|
cffile="${XDG_CONFIG_HOME:-$HOME/.config}/AtOM/atom.cfg"
|
||||||
|
|
||||||
help() {
|
help() {
|
||||||
cat <<-EOF
|
cat <<-EOF
|
||||||
Options:
|
Options:
|
||||||
@ -78,7 +85,6 @@ help() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#parse arguments
|
#parse arguments
|
||||||
OPTERR=0
|
|
||||||
while getopts ':c:Cl:T:F:f:B:ShDq' opt
|
while getopts ':c:Cl:T:F:f:B:ShDq' opt
|
||||||
do
|
do
|
||||||
case $opt in
|
case $opt in
|
||||||
|
|||||||
@ -32,7 +32,6 @@ declare -r \
|
|||||||
\
|
\
|
||||||
oldIFS="$IFS"
|
oldIFS="$IFS"
|
||||||
|
|
||||||
cffile="$HOME/.atom/atom.cfg"
|
|
||||||
LC_ALL=C
|
LC_ALL=C
|
||||||
|
|
||||||
shopt -s extglob
|
shopt -s extglob
|
||||||
@ -42,6 +41,15 @@ do
|
|||||||
source "$function"
|
source "$function"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
if ! [[ -f "${XDG_CONFIG_HOME:-$HOME/.config}/AtOM/atom.cfg" ]] \
|
||||||
|
&& [[ -f "$HOME/.atom/atom.cfg" ]]
|
||||||
|
then
|
||||||
|
echo "Configuration found in legacy location $HOME/.atom/atom.cfg."\
|
||||||
|
"Migrating configuration and data to XDG standard"
|
||||||
|
xdgMigrate
|
||||||
|
fi
|
||||||
|
cffile="${XDG_CONFIG_HOME:-$HOME/.config}/AtOM/atom.cfg"
|
||||||
|
|
||||||
while getopts 'urnD' opt
|
while getopts 'urnD' opt
|
||||||
do
|
do
|
||||||
case $opt in
|
case $opt in
|
||||||
|
|||||||
@ -32,7 +32,6 @@ declare -r \
|
|||||||
\
|
\
|
||||||
oldIFS="$IFS"
|
oldIFS="$IFS"
|
||||||
|
|
||||||
cffile="$HOME/.atom/atom.cfg"
|
|
||||||
LC_ALL=C
|
LC_ALL=C
|
||||||
|
|
||||||
shopt -s extglob
|
shopt -s extglob
|
||||||
@ -42,6 +41,15 @@ do
|
|||||||
source "$function"
|
source "$function"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
if ! [[ -f "${XDG_CONFIG_HOME:-$HOME/.config}/AtOM/atom.cfg" ]] \
|
||||||
|
&& [[ -f "$HOME/.atom/atom.cfg" ]]
|
||||||
|
then
|
||||||
|
echo "Configuration found in legacy location $HOME/.atom/atom.cfg."\
|
||||||
|
"Migrating configuration and data to XDG standard"
|
||||||
|
xdgMigrate
|
||||||
|
fi
|
||||||
|
cffile="${XDG_CONFIG_HOME:-$HOME/.config}/AtOM/atom.cfg"
|
||||||
|
|
||||||
while getopts 'D' opt
|
while getopts 'D' opt
|
||||||
do
|
do
|
||||||
case $opt in
|
case $opt in
|
||||||
|
|||||||
@ -32,7 +32,6 @@ declare -r \
|
|||||||
\
|
\
|
||||||
oldIFS="$IFS"
|
oldIFS="$IFS"
|
||||||
|
|
||||||
cffile="$HOME/.atom/atom.cfg"
|
|
||||||
LC_ALL=C
|
LC_ALL=C
|
||||||
|
|
||||||
shopt -s extglob
|
shopt -s extglob
|
||||||
@ -42,6 +41,15 @@ do
|
|||||||
source "$function"
|
source "$function"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
if ! [[ -f "${XDG_CONFIG_HOME:-$HOME/.config}/AtOM/atom.cfg" ]] \
|
||||||
|
&& [[ -f "$HOME/.atom/atom.cfg" ]]
|
||||||
|
then
|
||||||
|
echo "Configuration found in legacy location $HOME/.atom/atom.cfg."\
|
||||||
|
"Migrating configuration and data to XDG standard"
|
||||||
|
xdgMigrate
|
||||||
|
fi
|
||||||
|
cffile="${XDG_CONFIG_HOME:-$HOME/.config}/AtOM/atom.cfg"
|
||||||
|
|
||||||
while getopts 'Dr' opt
|
while getopts 'Dr' opt
|
||||||
do
|
do
|
||||||
case $opt in
|
case $opt in
|
||||||
|
|||||||
@ -32,7 +32,6 @@ declare -r \
|
|||||||
\
|
\
|
||||||
oldIFS="$IFS"
|
oldIFS="$IFS"
|
||||||
|
|
||||||
cffile="$HOME/.atom/atom.cfg"
|
|
||||||
LC_ALL=C
|
LC_ALL=C
|
||||||
|
|
||||||
shopt -s extglob
|
shopt -s extglob
|
||||||
@ -42,6 +41,15 @@ do
|
|||||||
source "$function"
|
source "$function"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
if ! [[ -f "${XDG_CONFIG_HOME:-$HOME/.config}/AtOM/atom.cfg" ]] \
|
||||||
|
&& [[ -f "$HOME/.atom/atom.cfg" ]]
|
||||||
|
then
|
||||||
|
echo "Configuration found in legacy location $HOME/.atom/atom.cfg."\
|
||||||
|
"Migrating configuration and data to XDG standard"
|
||||||
|
xdgMigrate
|
||||||
|
fi
|
||||||
|
cffile="${XDG_CONFIG_HOME:-$HOME/.config}/AtOM/atom.cfg"
|
||||||
|
|
||||||
while getopts 'rD' opt
|
while getopts 'rD' opt
|
||||||
do
|
do
|
||||||
case $opt in
|
case $opt in
|
||||||
|
|||||||
@ -34,8 +34,6 @@ declare -r \
|
|||||||
\
|
\
|
||||||
oldIFS="$IFS"
|
oldIFS="$IFS"
|
||||||
|
|
||||||
cffile="$HOME/.atom/atom.cfg"
|
|
||||||
|
|
||||||
LC_ALL=C
|
LC_ALL=C
|
||||||
|
|
||||||
shopt -s extglob
|
shopt -s extglob
|
||||||
@ -47,6 +45,15 @@ do
|
|||||||
source "$function"
|
source "$function"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
if ! [[ -f "${XDG_CONFIG_HOME:-$HOME/.config}/AtOM/atom.cfg" ]] \
|
||||||
|
&& [[ -f "$HOME/.atom/atom.cfg" ]]
|
||||||
|
then
|
||||||
|
echo "Configuration found in legacy location $HOME/.atom/atom.cfg."\
|
||||||
|
"Migrating configuration and data to XDG standard"
|
||||||
|
xdgMigrate
|
||||||
|
fi
|
||||||
|
cffile="${XDG_CONFIG_HOME:-$HOME/.config}/AtOM/atom.cfg"
|
||||||
|
|
||||||
args="$@"
|
args="$@"
|
||||||
while [ -n "$1" ]
|
while [ -n "$1" ]
|
||||||
do
|
do
|
||||||
|
|||||||
@ -32,7 +32,6 @@ declare -r \
|
|||||||
\
|
\
|
||||||
oldIFS="$IFS"
|
oldIFS="$IFS"
|
||||||
|
|
||||||
cffile="$HOME/.atom/atom.cfg"
|
|
||||||
LC_ALL=C
|
LC_ALL=C
|
||||||
|
|
||||||
shopt -s extglob
|
shopt -s extglob
|
||||||
@ -42,6 +41,15 @@ do
|
|||||||
source "$function"
|
source "$function"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
if ! [[ -f "${XDG_CONFIG_HOME:-$HOME/.config}/AtOM/atom.cfg" ]] \
|
||||||
|
&& [[ -f "$HOME/.atom/atom.cfg" ]]
|
||||||
|
then
|
||||||
|
echo "Configuration found in legacy location $HOME/.atom/atom.cfg."\
|
||||||
|
"Migrating configuration and data to XDG standard"
|
||||||
|
xdgMigrate
|
||||||
|
fi
|
||||||
|
cffile="${XDG_CONFIG_HOME:-$HOME/.config}/AtOM/atom.cfg"
|
||||||
|
|
||||||
while getopts 'fm:o:p:*:uD' opt
|
while getopts 'fm:o:p:*:uD' opt
|
||||||
do
|
do
|
||||||
case $opt in
|
case $opt in
|
||||||
|
|||||||
@ -33,7 +33,6 @@ declare -r \
|
|||||||
\
|
\
|
||||||
oldIFS="$IFS"
|
oldIFS="$IFS"
|
||||||
|
|
||||||
cffile="$HOME/.atom/atom.cfg"
|
|
||||||
LC_ALL=C
|
LC_ALL=C
|
||||||
|
|
||||||
shopt -s extglob
|
shopt -s extglob
|
||||||
@ -43,6 +42,15 @@ do
|
|||||||
source "$function"
|
source "$function"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
if ! [[ -f "${XDG_CONFIG_HOME:-$HOME/.config}/AtOM/atom.cfg" ]] \
|
||||||
|
&& [[ -f "$HOME/.atom/atom.cfg" ]]
|
||||||
|
then
|
||||||
|
echo "Configuration found in legacy location $HOME/.atom/atom.cfg."\
|
||||||
|
"Migrating configuration and data to XDG standard"
|
||||||
|
xdgMigrate
|
||||||
|
fi
|
||||||
|
cffile="${XDG_CONFIG_HOME:-$HOME/.config}/AtOM/atom.cfg"
|
||||||
|
|
||||||
while getopts 'AlacdgptnNyuD' opt
|
while getopts 'AlacdgptnNyuD' opt
|
||||||
do
|
do
|
||||||
case $opt in
|
case $opt in
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user