This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Zsh compiled script + zrecompile backup | |
*.zwc | |
*.zwc.old | |
# Zsh completion-optimization dumpfile | |
*zcompdump* | |
# Zsh zcalc history | |
.zcalc_history |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From e56bf700acaf4a50143daec16208ab86c8586f9c Mon Sep 17 00:00:00 2001 | |
From: Sebastian Gniazdowski <[email protected]> | |
Date: Thu, 3 Oct 2019 15:54:17 +0200 | |
Subject: [PATCH] configure: Link with ncurses if (and even) it doesn't provide | |
tgetent, to build the module. Also link with tinfow (not only tinfo) | |
The patch is useful on e.g. Gentoo, where the ncurses library doesn't provide the tgetent call. | |
--- | |
configure.ac | 17 ++++++++++++++--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Usage: | |
# if .smatch "axx" "a*x"; then | |
# print $REPLY | |
# fi | |
# Output: | |
# ax | |
# The parameters $match, etc. are also normally available | |
.smatch() { | |
local str="$1" pat="$2" retval=1 | |
match=() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This Zshell function will execute the given code from a Zle context. | |
# It has an optional delay first argument: "@sleep:<secnods with fractions>". | |
# If given, then the code will wait in background before being executed, for | |
# the specified amount of time. | |
# The limit of the code length is 25 lines and can be easily extended by | |
# changing the "repeat 25" line | |
# | |
# Usage: | |
# deploy-code "echo Hello world" | |
# deploy-code "BUFFER[-1]=''" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The Zshell function will display the given message under-prompt (as a kind of notification). | |
# It has an optional delay first argument: "@sleep:<secnods with fractions>". If given, then | |
# the message will wait in background before showing for the specified time. | |
# | |
# Usage: | |
# deploy-message @msg "Hello world" | |
# deploy-message "Hello world" | |
# deploy-message @msg 1234 # I.e. the "@msg" is needed for number-only messages, otherwise optional | |
# deploy-message @sleep:5.5 "Hello world" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Definition of a service that builds Zsh located at | |
# ~/github/sfzsh3, with -O2 and pointers to libgdbm. | |
# | |
# This file is for configure script. File sfzsh3make | |
# is for running make, and is triggered automatically | |
# by this file | |
# | |
integer disabled=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Return n-th (z) segment of given text | |
# $1 - text | |
# $2 - segment (default is 1) | |
# $3 - destination variable name (default is "REPLY") | |
# | |
# Can use e.g. 'reply[1]' for $3 | |
function -zui_stdlib_get_segment() { | |
local -a segs | |
segs=( "${(z@)1}" ) | |
local varname="${3-REPLY}" |