yaic

yet another ii client
git clone git://git.ckyln.com/~cem/yaic.git
Log | Files | Refs | README | LICENSE

commit d2997a4cbddcbe1c9f1c1a44743d0d6d355d5478
parent 1aa290976ba107dc6c6d0da4b9bd7f26c4d41062
Author: Cem Keylan <cem@ckyln.com>
Date:   Fri,  8 May 2020 01:11:25 +0300

yaic: support configuration files

Diffstat:
Myaic | 6++++++
Ayaicrc | 21+++++++++++++++++++++
2 files changed, 27 insertions(+), 0 deletions(-)

diff --git a/yaic b/yaic @@ -273,4 +273,10 @@ main() { } +# Load a configuration file if it exists, very beneficial if +# you don't want to set them on your shellrc. +# shellcheck disable=1090 +[ -r "${XDG_CONFIG_HOME:-$HOME/.config}/yaicrc" ] && + . "${XDG_CONFIG_HOME:-$HOME/.config}/yaicrc" + main "$@" diff --git a/yaicrc b/yaicrc @@ -0,0 +1,21 @@ +# Example configuration for yaic +# This will be sourced by program just like +# a shellrc. + +# Nickname (defaults to your system username) +n= + +# ii Root Directory (defaults to ~/irc) +r= + +# Default channel (defaults to the server channel) +c= + +# Default history size +h= + +# Set to 1 to disable bar. Leave empty otherwise. +NOBAR= + +# Set to 1 to disable server messages. Leave empty otherwise. +NOSERV=