[Pkg-zsh-devel] Bug#776663: zsh-common: Wish for /etc/zsh/zprofile.d or equivalent

Tim Booth tbooth at ceh.ac.uk
Fri Jan 30 18:25:21 UTC 2015


Package: zsh-common
Version: 5.0.2-3ubuntu6
Severity: wishlist

This is a request on behalf of Bio-Linux and the Debian Med developers.
The attached file shows the zshrc used on Bio-Linux, and the part we'd really
like to see in the standard zsh-common package is support for a zprofile.d configuration
directory to mirror /etc/profile.d which is read by BASH and allows
packages to drop config fragments into the shell profile.

In Bio-Linux this is hooked from zshrc but actually a modified zprofile
probably makes more sense.

This is pretty trivial to implement, as far as I can see.  What do you think?

Cheers,

TIM

-- System Information:
Debian Release: jessie/sid
  APT prefers trusty-updates
  APT policy: (500, 'trusty-updates'), (500, 'trusty-security'), (500, 'trusty'), (100, 'trusty-backports')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.13.0-44-generic (SMP w/8 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages zsh-common depends on:
ii  dpkg  1.17.5ubuntu5.3

Versions of packages zsh-common recommends:
ii  zsh  5.0.2-3ubuntu6

Versions of packages zsh-common suggests:
pn  zsh-doc  <none>

-- Configuration Files:
/etc/zsh/zshrc changed:
test -e /etc/zsh/zshrc.ubuntu && source /etc/zsh/zshrc.ubuntu
function setenv () {
    if [[ $@ == '' ]] then
       printenv
    else
       export $1=$2
    fi
}
compctl -M '' 'm:{_a-z-}={-A-Z_}'
zstyle ':completion:*' matcher-list '' '+m:{_a-z-}={-A-Z_}'
if [ "$TERM" = screen ]; then
    PROMPT='%n@%m{%1/} '
else
    PROMPT='%n@%m[%1/] ' # default prompt
fi
RPROMPT='%B[%t]%b'     # prompt for right side of screen
bindkey -e             # emacs key bindings
bindkey ' ' magic-space  # also do history expansion on space
setopt correct no_bg_nice no_hup append_history hist_ignore_dups hist_expire_dups_first
HISTSIZE=2000                            # how many to remember
HISTFILE=~/.zsh_history         	 # where to save them
SAVEHIST=2000                            # how many to save
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
alias top='top -d 5'
alias h='history'
alias ll='ls -l'  # Note 'L' is already aliased by default
alias help='run-help'
alias wcat='wget -q -O-'
alias ls='ls --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
alias less='/usr/bin/less -i -# 20 -R'
autoload copy-earlier-word
bindkey '\e[6~' copy-earlier-word
zle -N copy-earlier-word copy-earlier-word
bindkey '\e[5~' insert-last-word
autoload smart-insert-last-word
zle -N insert-last-word smart-insert-last-word
bindkey '\e[1;5C' vi-forward-blank-word
bindkey '\e[1;5D' vi-backward-blank-word
alias g='xdg-open'
alias go='xdg-open'
alias uncompress='gunzip'
export GZIP="--best"
for i in `( setopt null_glob ; echo -n /etc/zsh/zshrc.d/*.zsh )` ; do
    if [ -r $i ]; then
      source $i
    fi
done
unset i


-- no debconf information



More information about the Pkg-zsh-devel mailing list