General: Change all vars/functions to use underscores

This commit is contained in:
Dylan Araps 2016-11-09 22:40:31 +11:00
parent 01cf820822
commit 551da617ed
3 changed files with 12 additions and 12 deletions

View file

@ -46,9 +46,9 @@ print_info() {
# info "Users" users # info "Users" users
# info "Birthday" birthday # info "Birthday" birthday
info linebreak info line_break
info cols info cols
info linebreak info line_break
} }

View file

@ -6,8 +6,8 @@
print_info() { print_info() {
if [ "$TRAVIS_OS_NAME" ]; then if [ "$TRAVIS_OS_NAME" ]; then
info linebreak info line_break
info linebreak info line_break
fi fi
info title info title
@ -41,9 +41,9 @@ print_info() {
info "Users" users info "Users" users
info "Birthday" birthday info "Birthday" birthday
info linebreak info line_break
info cols info cols
info linebreak info line_break
} }
refresh_rate="on" refresh_rate="on"

View file

@ -646,7 +646,7 @@ get_wm_theme() {
ob_file="rc" ob_file="rc"
fi fi
wm_theme="$(awk -F "[<,>]" '/<theme/ {get_line; print $3}' "$XDG_CONFIG_HOME/openbox/${ob_file}.xml")"; wm_theme="$(awk -F "[<,>]" '/<theme/ {getline; print $3}' "$XDG_CONFIG_HOME/openbox/${ob_file}.xml")";
;; ;;
"PekWM") "PekWM")
@ -2708,8 +2708,8 @@ bold() {
# Linebreak {{{ # Linebreak {{{
get_linebreak() { get_line_break() {
linebreak=" " line_break=" "
# Calculate info height # Calculate info height
info_height="$((info_height+=1))" info_height="$((info_height+=1))"
@ -2906,7 +2906,7 @@ kde_config_dir() {
# Terminal info {{{ # Terminal info {{{
# #
# Parse terminal config files to get_ # Parse terminal config files to get
# info about padding. Due to how w3m-img # info about padding. Due to how w3m-img
# works padding around the terminal throws # works padding around the terminal throws
# off the cursor placement calculation in # off the cursor placement calculation in
@ -3241,7 +3241,7 @@ get_args() {
--ascii_bold) ascii_bold="$2" ;; --ascii_bold) ascii_bold="$2" ;;
--logo | -L) --logo | -L)
image="ascii" image="ascii"
printinfo() { info linebreak; } print_info() { info line_break; }
;; ;;
@ -3267,7 +3267,7 @@ get_args() {
-v) verbose="on" ;; -v) verbose="on" ;;
-vv) set -x; verbose="on" ;; -vv) set -x; verbose="on" ;;
--help) usage ;; --help) usage ;;
--version) printf "%s\n" "Neofetch 1.9.1"; exit ;; --version) printf "%s\n" "Neofetch 2.0"; exit ;;
esac esac
shift shift