summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/extra/notes_index2
-rw-r--r--config/essentials/zsh/.zshrc1
-rw-r--r--config/essentials/zsh/comp.zsh26
-rw-r--r--config/essentials/zsh/completions/_ws12
-rw-r--r--config/theme/gtk-2.0/gtkfilechooser.ini4
5 files changed, 30 insertions, 15 deletions
diff --git a/bin/extra/notes_index b/bin/extra/notes_index
index 9ccb3b2..da5c6cf 100755
--- a/bin/extra/notes_index
+++ b/bin/extra/notes_index
@@ -22,7 +22,7 @@ do
-printf '%f ' \
-exec grep '^# ' -m1 {} \; |
sed 's/\(.\+\.md\) # \(.\+\)/- [\2](\1)/' |
- sort -t '[' -k 2 >> index.md
+ sort -t '[' -k 2 -n >> index.md
if [ "$(find . -mindepth 2 -maxdepth 2 -type f -name '*.md' | wc -l)" -gt 0 ]
then
diff --git a/config/essentials/zsh/.zshrc b/config/essentials/zsh/.zshrc
index fa7f6e6..139c145 100644
--- a/config/essentials/zsh/.zshrc
+++ b/config/essentials/zsh/.zshrc
@@ -17,6 +17,7 @@ zle -N edit-command-line
### Source files
source_ex() { [ -f "$1" ] && . "$1"; } # source if exists
+source_ex /etc/grc.zsh
source_ex /etc/profile.d/plan9.sh
source_ex $XDG_CONFIG_HOME/zsh/comp.zsh
source_ex $XDG_CONFIG_HOME/shell/functions.sh
diff --git a/config/essentials/zsh/comp.zsh b/config/essentials/zsh/comp.zsh
index 3d3f785..fffdc80 100644
--- a/config/essentials/zsh/comp.zsh
+++ b/config/essentials/zsh/comp.zsh
@@ -58,5 +58,31 @@ _dotnet_zsh_complete()
_values = "${(ps:\n:)completions}"
}
compdef _dotnet_zsh_complete dotnet
+
+_ws_complete() {
+ local -a subcmds
+ ws help 2>&1 |
+ tail -n +3 | # skip usage and COMMANDS line
+ sed -e 's/\s*\([^ ]\+\)\s*\(.\+\)/\1: \2/' |
+ while read -r line; do
+ subcmds+=("$line")
+ done
+ _describe 'ws commands' subcmds
+}
+compdef _ws_complete ws
+
+_go_flag_complete() {
+ local -a subcmds
+ $name -h 2>&1 | tail -n +2 |
+ while read -r l1; do
+ read -r l2
+ l1="$(printf '%s' "$l1" | sed 's/^\s*\([^ ]\+\).*/\1/')"
+ l2="$(printf '%s' "$l2" | sed 's/^\s*//')"
+ subcmds+=("$l1: $l2")
+ done
+ _describe 'commands' subcmds
+}
+
compdef _gnu_generic cpp sqlplus
compdef _gnu_generic air
+compdef _go_flag_complete wbr
diff --git a/config/essentials/zsh/completions/_ws b/config/essentials/zsh/completions/_ws
deleted file mode 100644
index f25d26b..0000000
--- a/config/essentials/zsh/completions/_ws
+++ /dev/null
@@ -1,12 +0,0 @@
-#compdef ws
-local -a subcmds
-subcmds=('add: Adds a task to the end of the stack'
- 'done: Mark a task as done'
- 'undone: Mask a task as undone'
- 'pc: Procrastinate task a task to end of stack'
- 'del: Delete an active task'
- 'ls: List active tasks'
- 'list: List all tasks'
- 'reset: Recreate the tasks.gob file'
- 'help: Show this help')
-_describe 'ws commands' subcmds
diff --git a/config/theme/gtk-2.0/gtkfilechooser.ini b/config/theme/gtk-2.0/gtkfilechooser.ini
index d742688..fb85212 100644
--- a/config/theme/gtk-2.0/gtkfilechooser.ini
+++ b/config/theme/gtk-2.0/gtkfilechooser.ini
@@ -2,8 +2,8 @@
LocationMode=path-bar
ShowHidden=false
ShowSizeColumn=true
-GeometryX=158
-GeometryY=201
+GeometryX=542
+GeometryY=191
GeometryWidth=836
GeometryHeight=697
SortColumn=name