diff --git a/util/misc/tmux/actions.py b/util/misc/tmux/actions.py new file mode 100644 index 0000000000..aa4bbe8ab4 --- /dev/null +++ b/util/misc/tmux/actions.py @@ -0,0 +1,19 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- +# +# Licensed under the GNU General Public License, version 3. +# See the file http://www.gnu.org/licenses/gpl.txt + +from pisi.actionsapi import autotools +from pisi.actionsapi import pisitools +from pisi.actionsapi import get + +def setup(): + autotools.configure() + +def build(): + autotools.make() + +def install(): + autotools.rawInstall("PREFIX=/%s DESTDIR=%s" % (get.defaultprefixDIR(), get.installDIR())) + diff --git a/util/misc/tmux/pspec.xml b/util/misc/tmux/pspec.xml new file mode 100644 index 0000000000..4d5c244350 --- /dev/null +++ b/util/misc/tmux/pspec.xml @@ -0,0 +1,70 @@ + + + + + tmux + http://tmux.sourceforge.net/ + + PisiLinux Community + admins@pisilinux.org + + BSD + ISC + app:console + A terminal multiplexer + Tmux is a terminal multiplexer. It's similar to GNU Screen. + https://github.com/tmux/tmux/releases/download/2.8/tmux-2.8.tar.gz + + libevent-devel + ncurses-devel + + + + + + tmux + + libevent + ncurses + + + /usr/bin + /etc + /usr/lib + /usr/share/man + /usr/share/doc + /usr/share + + + + + + 2019-02-13 + 2.8 + Version bump. + Hasan Basri + hbasria@pisilinux.org + + + 2015-01-25 + 1.9 + Version bump. + Stefan Gronewold(groni) + groni@pisilinux.org + + + 2011-12-09 + 1.8 + Version Bump + Stefan Gronewold(groni) + groni@pisilinux.org + + + 2011-09-28 + 1.5 + First release + Pisi Linux Admins + admins@pisilinux.org + + + diff --git a/util/misc/tmux/translations.xml b/util/misc/tmux/translations.xml new file mode 100644 index 0000000000..cb75325804 --- /dev/null +++ b/util/misc/tmux/translations.xml @@ -0,0 +1,8 @@ + + + + tmux + Bir terminal çoğaltıcı uygulaması + tmux bir terminal çoğaltıcısıdır. GNU screen gibi terminal pencerenizi birden fazla parçalara bölerek çalışmanızı sağlar. + + diff --git a/util/shell/zsh/actions.py b/util/shell/zsh/actions.py new file mode 100644 index 0000000000..fd779dc19e --- /dev/null +++ b/util/shell/zsh/actions.py @@ -0,0 +1,42 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- +# +# Licensed under the GNU General Public License, version 3. +# See the file http://www.gnu.org/licenses/gpl.txt + +from pisi.actionsapi import autotools +from pisi.actionsapi import pisitools +from pisi.actionsapi import get + +def setup(): + autotools.autoreconf("-vfi") + autotools.configure('--bindir=/bin \ + --with-tcsetpgrp \ + --enable-maildir-support \ + --enable-etcdir=/etc/zsh \ + --enable-zshenv=/etc/zsh/zshenv \ + --enable-zlogin=/etc/zsh/zlogin \ + --enable-zlogout=/etc/zsh/zlogout \ + --enable-zprofile=/etc/zsh/zprofile \ + --enable-zshrc=/etc/zsh/zshrc \ + --enable-fndir=/usr/share/zsh/functions \ + --enable-scriptdir=/usr/share/zsh/scripts \ + --enable-site-fndir=/usr/share/zsh/site-functions \ + --enable-function-subdirs \ + --enable-pcre \ + --enable-cap \ + --enable-multibyte \ + --enable-cflags="%s" \ + --enable-ldflags="%s"' % (get.CFLAGS(),get.LDFLAGS())) + +def build(): + autotools.make() + +def install(): + autotools.rawInstall("DESTDIR=%s" % get.installDIR()) + + # Remove versioned copy + pisitools.remove("/bin/%s" % (get.srcDIR())) + + pisitools.doman("Doc/*.1") + pisitools.dodoc("ChangeLog", "FEATURES", "LICENCE", "META-FAQ", "NEWS", "README") diff --git a/util/shell/zsh/files/accept-line b/util/shell/zsh/files/accept-line new file mode 100644 index 0000000000..d9b39e382c --- /dev/null +++ b/util/shell/zsh/files/accept-line @@ -0,0 +1,130 @@ +### vim:ft=zsh:foldmethod=marker +### +### a generic accept-line wrapper +### +### Frank Terbeck +### Last-Modified: Wed Dec 26 14:37:47 2007 +### +### URI: +### + +function Accept-Line() { + setopt localoptions noksharrays + local -a subs + local -xi aldone + local sub + + zstyle -a ":acceptline:${alcontext}" actions subs + + (( ${#subs} < 1 )) && return 0 + + (( aldone = 0 )) + for sub in ${subs} ; do + [[ ${sub} == 'accept-line' ]] && sub='.accept-line' + zle ${sub} + + (( aldone > 0 )) && break + done +} + +function Accept-Line-getdefault() { + local default_action + + zstyle -s ":acceptline:${alcontext}" default_action default_action + case ${default_action} in + ((accept-line|)) + printf ".accept-line" + ;; + (*) + printf ${default_action} + ;; + esac +} + +function accept-line() { + setopt localoptions noksharrays + local -a cmdline + local -x alcontext + local buf com fname format msg default_action + + alcontext='default' + buf="${BUFFER}" + cmdline=(${(z)BUFFER}) + com="${cmdline[1]}" + fname="_${com}" + + zstyle -t ":acceptline:${alcontext}" rehash \ + && [[ -z ${commands[$com]} ]] \ + && rehash + + if [[ -n ${reswords[(r)$com]} ]] \ + || [[ -n ${aliases[$com]} ]] \ + || [[ -n ${functions[$com]} ]] \ + || [[ -n ${builtins[$com]} ]] \ + || [[ -n ${commands[$com]} ]] ; then + + # there is something sensible to execute, just do it. + alcontext='normal' + zle Accept-Line + + default_action=$(Accept-Line-getdefault) + zstyle -T ":acceptline:${alcontext}" call_default \ + && zle ${default_action} + return + fi + + if [[ -o correct ]] \ + || [[ -o correctall ]] \ + && [[ -n ${functions[$fname]} ]] ; then + + # nothing there to execute but there is a function called + # _command_name; a completion widget. Makes no sense to + # call it on the commandline, but the correct{,all} options + # will ask for it nevertheless, so warn the user. + if [[ ${LASTWIDGET} == 'accept-line' ]] ; then + # Okay, we warned the user before, he called us again, + # so have it his way. + alcontext='force' + zle Accept-Line + + default_action=$(Accept-Line-getdefault) + zstyle -T ":acceptline:${alcontext}" call_default \ + && zle ${default_action} + return + fi + + # prepare warning message for the user, configurable via zstyle. + zstyle -s ":acceptline:${alcontext}" compwarnfmt msg + + if [[ -z ${msg} ]] ; then + msg="%c will not execute and completion %f exists." + fi + + zformat -f msg "${msg}" "c:${com}" "f:${fname}" + + zle -M -- "${msg}" + return + elif [[ -n ${buf//[$' \t\n']##/} ]] ; then + # If we are here, the commandline contains something that is not + # executable, which is neither subject to _command_name correction + # and is not empty. might be a variable assignment + alcontext='misc' + zle Accept-Line + + default_action=$(Accept-Line-getdefault) + zstyle -T ":acceptline:${alcontext}" call_default \ + && zle ${default_action} + return + fi + + # If we got this far, the commandline only contains whitespace, or is empty. + alcontext='empty' + zle Accept-Line + + default_action=$(Accept-Line-getdefault) + zstyle -T ":acceptline:${alcontext}" call_default \ + && zle ${default_action} +} + +zle -N accept-line +zle -N Accept-Line diff --git a/util/shell/zsh/files/zprofile b/util/shell/zsh/files/zprofile new file mode 100644 index 0000000000..5b94196885 --- /dev/null +++ b/util/shell/zsh/files/zprofile @@ -0,0 +1,12 @@ + +[[ -e "/etc/profile.env" ]] && source /etc/profile.env + +umask 022 + +if [[ "$USER" == root ]]; then + export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:${ROOTPATH}" +else + export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:${PATH}" +fi + +unset ROOTPATH diff --git a/util/shell/zsh/files/zsh_command_not_found b/util/shell/zsh/files/zsh_command_not_found new file mode 100644 index 0000000000..11394d0f49 --- /dev/null +++ b/util/shell/zsh/files/zsh_command_not_found @@ -0,0 +1,11 @@ +#!/bin/zsh +# +#command not found handler for zsh. +#This handler is part of Zsh and is hooked to command-not-found program. +#man zshmisc is your friend. + +function command_not_found_handler() +{ + /usr/bin/python /usr/bin/command-not-found $1; + return $? +} diff --git a/util/shell/zsh/files/zshrc b/util/shell/zsh/files/zshrc new file mode 100644 index 0000000000..97665f05b8 --- /dev/null +++ b/util/shell/zsh/files/zshrc @@ -0,0 +1,85 @@ +# /etc/zsh/zshrc is sourced in interactive shells. It +# should contain commands to set up aliases, functions, +# options, key bindings, etc. + +# Colors +test -f /etc/DIR_COLORS && eval `dircolors /etc/DIR_COLORS` + +autoload -U colors +colors + +# Default prompt +if [[ "$USER" == root ]]; then + PROMPT="%{$bold_color$fg[red]%}%m %{$bold_color$fg[blue]%}%1~ %# %{$reset_color%}" +else + PROMPT="%{$bold_color%}%n@%m %{$reset_color$fg[red]%}%1~ %# %{$reset_color%}" +fi + +# Auto completion +autoload -U compinit +compinit + +# An accept-line wrapper, see http://bewatermyfriend.org/posts/2007/12-26.11-50-38-tooltime.html +autoload -U accept-line +accept-line + +# History +export HISTFILE=~/.zsh_history +export HISTSIZE=50000 +export SAVEHIST=50000 +export HISTCONTROL=ignoredups +setopt SHARE_HISTORY +setopt EXTENDED_HISTORY +setopt EXTENDED_GLOB + +# Aliases +alias dir='ls --color=auto' +alias grep='grep --color=auto' +alias la='ls --color=auto -la' +alias ll='ls --color=auto -l' +alias ls='ls --color=auto' +alias mc='. /usr/share/mc/bin/mc-wrapper.sh' +alias rm='rm -i' +alias scp-resume='rsync --compress-level=3 --partial --progress --rsh=ssh' + +# Key bindings +bindkey -e # emacs key bindings +bindkey ' ' magic-space # also do history expansion on space + +bindkey "\e[3~" delete-char +bindkey "\e[1~" beginning-of-line +bindkey "\e[4~" end-of-line +bindkey "\e[H" beginning-of-line +bindkey "\e[F" end-of-line +bindkey "\e[7~" beginning-of-line +bindkey "\e[8~" end-of-line +bindkey "^[[5~" up-line-or-history +bindkey "^[[6~" down-line-or-history + +# Editor +export VISUAL="nano" + +# Other options +setopt NO_BEEP +setopt CORRECT_ALL +setopt AUTO_LIST +setopt AUTO_PUSHD +setopt PUSHD_IGNORE_DUPS +setopt PUSHD_SILENT +setopt INTERACTIVE_COMMENTS +setopt NONOMATCH +setopt NOPROMPT_SP + +zstyle ':completion:*' use-cache on +zstyle ':completion:*' cache-path ~/.zsh_cache +zstyle ':acceptline:*' rehash true + +case $TERM in + xterm*) + precmd () {print -Pn "\e]0;%n@%m: %~\a"} + ;; +esac + +if [ -f /etc/zsh/zsh_command_not_found ] && [ -x /usr/bin/command-not-found ]; then + . /etc/zsh/zsh_command_not_found +fi diff --git a/util/shell/zsh/pspec.xml b/util/shell/zsh/pspec.xml new file mode 100644 index 0000000000..d5cf8ce8ca --- /dev/null +++ b/util/shell/zsh/pspec.xml @@ -0,0 +1,75 @@ + + + + + zsh + http://www.zsh.org + + PisiLinux Community + admins@pisilinux.org + + as-is + app:console + Powerful command line shell + Zsh is a command interpreter (shell) which has command-line editing, built-in spelling correction, programmable command completion, shell functions (with autoloading), a history mechanism, and a lots of other features. + mirrors://sourceforge/zsh/zsh-5.7.1.tar.xz + + libcap-devel + libpcre-devel + ncurses-devel + + + + zsh + + /etc + /bin + /usr/lib/zsh + /usr/share/zsh + /usr/share/man + /usr/share/doc/ + + + zprofile + zshrc + zsh_command_not_found + accept-line + + + libcap + libpcre + ncurses + + + + + + 2019-02-14 + 5.7.1 + Version bump. + Hasan Basri + hbasria@pisilinux.org + + + 2014-02-14 + 5.0.2 + Buildhost rebuild. + Yusuf Aydemir + yusuf.aydemir@pisilinux.org + + + 2013-04-30 + 5.0.2 + Version bump. + Yusuf Aydemir + yusuf.aydemir@pisilinux.org + + + 2011-06-01 + 4.3.12 + First release + Pisi Linux Admins + admins@pisilinux.org + + + \ No newline at end of file diff --git a/util/shell/zsh/translations.xml b/util/shell/zsh/translations.xml new file mode 100644 index 0000000000..185864282f --- /dev/null +++ b/util/shell/zsh/translations.xml @@ -0,0 +1,8 @@ + + + + zsh + Güçlü bir diğer komut satırı kabuğu + Zsh komut satırı düzenleme, yanlışları düzeltme, programlanabilir komut tamamlama, kabuk fonksiyonları, geçmiş mekanizması ve diğer bir çok özellikleriyle birlikte gelen bir (kabuk) komut yorumlayıcısıdır. + +