dot

packages and services management
Log | Files | Refs | README

commit 0e7a6b04635b945ef13271992e1aeb17ed7fb166
parent 481197c405563f589c8cc86d420f464d6c36d842
Author: josuah <mail@josuah.net>
Date:   Thu,  6 Oct 2016 23:59:37 -0400

Fixed irc.  Now it should be fully working

Diffstat:
Mbin/irc | 5+----
Dfirefox/.vimperatorrc | 8--------
Mshell/.profile | 4++--
Dvis/.config/vis/swiper.lua | 25-------------------------
Dvis/.config/vis/templates/awk | 1-
Dvis/.config/vis/templates/sed | 1-
Dvis/.config/vis/templates/sh | 1-
Dvis/.config/vis/themes/coal-16.lua | 32--------------------------------
Dvis/.config/vis/visrc.lua | 101-------------------------------------------------------------------------------
Dvis/build.sh | 3---
10 files changed, 3 insertions(+), 178 deletions(-)

diff --git a/bin/irc b/bin/irc @@ -162,7 +162,7 @@ parse_message() trail="${params#:}" ;; *:* ) - trail="${params#*:}" middle="${params%%:*}" + trail="${params#*:}" middle="${params%% :*}" ;; * ) middle="$params" @@ -186,9 +186,6 @@ parse_message() ;; esac - printf 'cmd: %-10s middle: %-10s chan: %-10s %s\n\n' \ - "$cmd" "$middle" "$chan" "$params" >> ~/log - # Execute action case "$cmd" in PING ) diff --git a/firefox/.vimperatorrc b/firefox/.vimperatorrc @@ -1,8 +0,0 @@ -" __ /\ -" __ /\ \/ ________ ____ ___ _____ _____ / /_ ____ _____ -" / / / / /\ / __ __ \ / __ \ .'__ \ / ____\.'__ // ___\/ __ \ / ____\ -" \ \/ / / // / / / / // /_/ // ____// / / /_/ // / / /_/ // / -" \_,' \/ \/ \/ \// ____/ \___\ \/ \____/ \/ \____/ \/ -"=====================\/======================================================== - -set gui=none diff --git a/shell/.profile b/shell/.profile @@ -89,8 +89,8 @@ ps1() code="$?" # Error code - [ "$code" -eq 0 ] || printf '\033[31;1m %40s ' "$code" - printf '\n \033[1;31m>\033[33m>\033[34m>\033[0m ' + [ "$code" -eq 0 ] && color=32 || color=31 + printf '\n \033[1;30m>\033[0;%sm>\033[1m>\033[0m ' "$color" # Update tmux status line at each new prompt tmux refresh-client -S diff --git a/vis/.config/vis/swiper.lua b/vis/.config/vis/swiper.lua @@ -1,25 +0,0 @@ -#!/usr/bin/env lua --- __ --- ____ __ /\ \/ ____ ___ _____ --- / __// /\/ / /\ / __ \ .'__ \ / ____\ ---__\ \ / / / / / // /_/ // ____// / ---\___/ \____/ \// ____/ \___\ \/ ---================\/============================================================ - -require 'vis' - -function swiper () - local p = io.popen([[ -stty="$(stty -g)" -stty sane -expand "]] .. vis.win.file.name or '' .. [[" | while read -r line -do - nl="$((nl + 1))" - printf '%6s %s \n' "$nl" "$line" -done | vis-menu -l 10 | sed -r 's/ *([0-9]*).*/\1/' -stty "$stty" - ]], 'r') - - vis:feedkeys(p:read('*a') .. 'gg<C-l>') - p:close() -end diff --git a/vis/.config/vis/templates/awk b/vis/.config/vis/templates/awk @@ -1 +0,0 @@ -#!/bin/awk -f diff --git a/vis/.config/vis/templates/sed b/vis/.config/vis/templates/sed @@ -1 +0,0 @@ -#!/bin/sed -f diff --git a/vis/.config/vis/templates/sh b/vis/.config/vis/templates/sh @@ -1 +0,0 @@ -#!/bin/sh diff --git a/vis/.config/vis/themes/coal-16.lua b/vis/.config/vis/themes/coal-16.lua @@ -1,32 +0,0 @@ --- Eight-color scheme -local lexers = vis.lexers - --- dark -lexers.STYLE_DEFAULT = "back:black,fore:white" -lexers.STYLE_NOTHING = "back:black" -lexers.STYLE_CLASS = "fore:white,bold" -lexers.STYLE_COMMENT = "fore:black,bold" -lexers.STYLE_CONSTANT = "fore:white,bold" -lexers.STYLE_DEFINITION = "fore:white,bold" -lexers.STYLE_ERROR = "back:red,fore:white" -lexers.STYLE_FUNCTION = "fore:white,bold" -lexers.STYLE_KEYWORD = "fore:yellow,bold" -lexers.STYLE_LABEL = "fore:white,bold" -lexers.STYLE_OPERATOR = "fore:white,bold" -lexers.STYLE_REGEX = "fore:white,bold" -lexers.STYLE_STRING = "fore:yellow" -lexers.STYLE_NUMBER = "fore:yellow,bold" -lexers.STYLE_PREPROCESSOR = "fore:white,bold" -lexers.STYLE_TAG = "fore:white,bold" -lexers.STYLE_TYPE = "fore:white,bold" -lexers.STYLE_VARIABLE = "fore:white,bold" -lexers.STYLE_WHITESPACE = "fore:black,bold" -lexers.STYLE_EMBEDDED = "back:white,bold" -lexers.STYLE_IDENTIFIER = "fore:white" - -lexers.STYLE_LINENUMBER = "fore:white" -lexers.STYLE_CURSOR = "back:black,fore:yellow,reverse,bold" -lexers.STYLE_CURSOR_PRIMARY = "back:black,fore:red,reverse,bold" -lexers.STYLE_CURSOR_LINE = "back:black,fore:magenta,reverse" -lexers.STYLE_COLOR_COLUMN = "back:black,fore:magenta,reverse" -lexers.STYLE_SELECTION = "back:white,fore:black" diff --git a/vis/.config/vis/visrc.lua b/vis/.config/vis/visrc.lua @@ -1,101 +0,0 @@ -#!/usr/bin/env lua --- __ --- __ /\ \/ ____ _____ ____ --- / / / / /\ / __// ____\/ ___\ --- \ \/ / / /__\ \ / / / /__ --- \_,' \/ \___/ \/ \____\ - vis editor configuration file ---============================================================================== - -require 'vis' -require 'swiper' - -local leader = ' ' - - --- Runtime options and bindings --------------------------------------------------------------------------------- - -function vis.events.win_open (win) - - -- Syntax highlighting for known file types - vis.filetype_detect(win) - - -- Runtime options - vis:command('set number') - vis:command('set autoindent') - vis:command('set colorcolumn 80') - vis:command('set theme coal-16') - - -- Leader keybindings - vis:command('map! normal "' .. leader .. leader .. '" <prompt-show>') - vis:command('map! normal "' .. leader .. 'w" :w<Enter>') - vis:command('map! normal "' .. leader .. 'e" ":e .<Enter>"') - vis:command('map! normal "' .. leader .. 's" ":set "') - - -- vis-unimpaired - vis:command('map! normal "[ol" ":set show tabs=1<Enter>:set show newlines=1<Enter>"') - vis:command('map! normal "]ol" ":set show tabs=0<Enter>:set show newlines=0<Enter>"') - vis:command('map! normal "[ " "<open-line-above><Escape>"') - vis:command('map! normal "] " "<open-line-below><Escape>"') - vis:command('map! normal "[e" "<vis-operator-delete><vis-operator-delete><cursor-line-up><put-before>"') - vis:command('map! normal "]e" "<vis-operator-delete><vis-operator-delete><put-after>"') - - -- Plugins - vis:map(vis.MODE_NORMAL, 'g/', swiper) -end - - --- Status line --------------------------------------------------------------------------------- - -function vis.events.win_status (win) - local left, right = {}, {} - local modes = { - [vis.MODE_NORMAL] = '', - [vis.MODE_OPERATOR_PENDING] = '', - [vis.MODE_VISUAL] = 'VISUAL', - [vis.MODE_VISUAL_LINE] = 'VISUAL-LINE', - [vis.MODE_INSERT] = 'INSERT', - [vis.MODE_REPLACE] = 'REPLACE', - } - - if modes[vis.mode] ~= '' and vis.win == win then - table.insert(left, modes[vis.mode]) - end - - table.insert( - left, - (win.file.name or '[No Name]') - .. (win.file.modified and ' [+]' or '') - .. (vis.recording and ' @' or '') - ) - - if win.file.newlines ~= "nl" then - table.insert(right, 'NL') - end - - if #win.cursors > 1 then - table.insert(right, win.cursor.number .. '/' .. #win.cursors) - end - - table.insert( - right, - ( - win.file.size == 0 and "0" - or math.ceil(win.cursor.pos / win.file.size * 100) - ) .. '%' - ) - - if not win.large then - table.insert(right, win.cursor.line .. ':' .. win.cursor.col) - - if win.file.size > 33554432 or win.cursor.col > 65536 then - win.large = true - end - end - - win:status( - ' ' .. table.concat(left, " - ") .. ' ', - ' ' .. table.concat(right, " - ") .. ' ' - ) -end diff --git a/vis/build.sh b/vis/build.sh @@ -1,3 +0,0 @@ -# Simple yet powerful text editor - -tar=http://github.com/martanne/vis/archive/master.tar.gz