35 lines
875 B
Bash
Executable File
35 lines
875 B
Bash
Executable File
#!/bin/bash
|
|
|
|
here="$(pwd)"
|
|
if [[ ! "$here" =~ firefox$ ]]; then
|
|
printf 'I dunno where I am\n' >&2
|
|
exit 1
|
|
fi
|
|
|
|
# @import url(chrome/navbar_below_content.css);
|
|
# @import url(chrome/tabs_below_content.css);
|
|
# @import url(chrome/toolbars_below_content.css);
|
|
|
|
declare -a files
|
|
files=(
|
|
'userChrome.css'
|
|
'userContent.css'
|
|
'navbar_below_content.css'
|
|
'tabs_below_content.css'
|
|
'toolbars_below_content.css'
|
|
)
|
|
|
|
find "${HOME}/.mozilla/firefox" -maxdepth 1 -type d -name '*.default' \
|
|
| while read dir; do
|
|
dest="${dir}/chrome"
|
|
if [[ ! -d "$dest" ]]; then
|
|
mkdir "$dest"
|
|
fi
|
|
for file in "${files[@]}"; do
|
|
printf 'ln -fs "%s/%s" "%s"\n' "$here" "$file" "$dest"
|
|
ln -fs "${here}/${file}" "$dest"
|
|
printf 'ln -fs "%s/%s" "%s"\n' "$here" "$file" "$dest"
|
|
ln -fs "${here}/${file}" "$dest"
|
|
done
|
|
done
|