xdgUpdate: move config file to .config/AtOM/
This commit is contained in:
parent
cc1c687118
commit
e9898b06c6
16
lib/tools/xdg-migrate
Normal file
16
lib/tools/xdg-migrate
Normal file
@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
xdgUpdate() {
|
||||
local old_config_dir=~/.atom \
|
||||
old_config_file=$old_config_dir/atom.cfg \
|
||||
|
||||
programname=AtOM \
|
||||
xdg_config_dir=~/.config/$programname \
|
||||
xdg_config_file=$xdg_config_dir/atom.cfg \
|
||||
|
||||
[[ -d "$xdg_config_dir" ]] || mkdir "$xdg_config_dir"
|
||||
if [[ ! -f $xdg_config_file ]]
|
||||
then
|
||||
mv $old_config_file $xdg_config_file
|
||||
fi
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user