Config: Remove leftover options

This commit is contained in:
Dylan Araps
2017-01-15 09:21:05 +11:00
parent b6a55cf91d
commit cbd6dfb899
2 changed files with 4 additions and 30 deletions

View File

@@ -1658,8 +1658,8 @@ get_term_font() {
;;
"termite")
[[ -f "${XDG_CONFIG_HOME}/termite/config" ]] && config_file="${XDG_CONFIG_HOME}/termite/config"
term_font="$(awk -F '= ' '/\[options\]/ {opt=1} /^font/ {if(opt==1) a=$2; opt=0} END{print a}' "/etc/xdg/termite/config" "$config_file")"
[[ -f "${XDG_CONFIG_HOME}/termite/config" ]] && termite_config="${XDG_CONFIG_HOME}/termite/config"
term_font="$(awk -F '= ' '/\[options\]/ {opt=1} /^font/ {if(opt==1) a=$2; opt=0} END{print a}' "/etc/xdg/termite/config" "$termite_config")"
;;
"urxvt" | "urxvtd" | "rxvt-unicode" | "xterm")
@@ -3979,8 +3979,8 @@ get_args() {
# Other
"--config")
case "$2" in
"none" | "off" | "") config="off" ;;
*) config_file="$2"; config="on"; get_user_config 2>/dev/null ;;
"none" | "off" | "") ;;
*) config_file="$2"; get_user_config 2>/dev/null ;;
esac
;;
"-v") verbose="on" ;;