Skip to content

Commit

Permalink
rename u - user to n - nick
Browse files Browse the repository at this point in the history
  • Loading branch information
c00kiemon5ter committed Jan 11, 2013
1 parent 4c53a70 commit a6fc330
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions iii.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# follows the tail of the out file
# and redirects input to the in file

: "${u:=$USER}" # the user's nickname
: "${n:=$USER}" # the user's nickname
: "${i:=$HOME/irc}" # root irc dir
: "${s:=irc.freenode.net}" # server
: "${c:=""}" # channel
Expand Down Expand Up @@ -51,7 +51,7 @@ do
[ "$nick" != '-!-' ] && printf '\a'

# highlight date if user was referenced in the message
case "$mesg" in *$u*) date="$(tput setaf $l)$date" ;; esac
case "$mesg" in *$n*) date="$(tput setaf $l)$date" ;; esac

# pretify special symbols around words
# *bold* _underline_ /italics/ and underline urls
Expand Down
2 changes: 1 addition & 1 deletion tmiii.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# accepts all env vars iii.sh accepts plus 't' which sets the terminal

## collect options from env - all opts to iii.sh should be set here
opts="TERM="${t:-rxvt-unicode}" m="$m" h="$h" p=$p u="$u" l="$l" i="$i" s="$s" c="$c""
opts="TERM="${t:-rxvt-unicode}" m="$m" h="$h" p=$p n="$n" l="$l" i="$i" s="$s" c="$c""

## spawn a new tmux window named <channel> in a tmux session named IRC
if ! tmux list-sessions | awk -v r=1 '$1 == "IRC:" { exit r=0 } END { exit r }'
Expand Down

0 comments on commit a6fc330

Please sign in to comment.