Package: zsh-common
Version: 5.0.7-5
Severity: minor
Tags: upstream patch
Dear Maintainer,
Zsh files are stored in /etc/zsh, they should be stored in /etc/zsh.d instead.
This is more consitant with other directories. I included a patch which makes
the new folder, moves, and creates a symlink. There is proabably a better
solution, but I just created a quick hack.
-- Package-specific info:
Packages which provide vendor completions:
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ NameVersion Architecture
Description
+++-===---
ii reprepro4.16.0-1 armhf
Debian package repository producer
ri systemd 215-17+deb8u4armhf
system and service manager
dpkg-query: no path found matching pattern /usr/share/zsh/vendor-functions
-- System Information:
Distributor ID: Debian
Description:Debian GNU/Linux Rolling
Release:Jessie
Codename: Jessie
Architecture: armv7l
Kernel: Linux 4.4.7-v7+ (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)
Versions of packages zsh-common depends on:
ii dpkg 1.17.26
Versions of packages zsh-common recommends:
ii zsh 5.0.7-5
Versions of packages zsh-common suggests:
pn zsh-doc
-- no debconf information
diff -Naur zsh-common-orig/control/conffiles zsh-common/control/conffiles
--- zsh-common-orig/control/conffiles 2014-11-25 16:47:14.0 -0600
+++ zsh-common/control/conffiles 2016-04-30 10:13:07.525182894 -0500
@@ -1,6 +1,6 @@
-/etc/zsh/newuser.zshrc.recommended
-/etc/zsh/zlogin
-/etc/zsh/zlogout
-/etc/zsh/zprofile
-/etc/zsh/zshenv
-/etc/zsh/zshrc
+/etc/zsh.d/newuser.zshrc.recommended
+/etc/zsh.d/zlogin
+/etc/zsh.d/zlogout
+/etc/zsh.d/zprofile
+/etc/zsh.d/zshenv
+/etc/zsh.d/zshrc
diff -Naur zsh-common-orig/control/postinst zsh-common/control/postinst
--- zsh-common-orig/control/postinst 2014-11-25 16:47:14.0 -0600
+++ zsh-common/control/postinst 2016-04-30 10:23:11.932056969 -0500
@@ -13,6 +13,7 @@
# Automatically added by dh_installdeb
dpkg-maintscript-helper symlink_to_dir /usr/share/doc/zsh zsh-common 5.0.7-3 -- "$@"
# End automatically added section
-
+mv /etc/zsh/* /etc/zsh.d/ 2>/dev/null
+ln -s /etc/zsh.d /etc/zsh
exit 0
diff -Naur zsh-common-orig/data/etc/zsh/newuser.zshrc.recommended zsh-common/data/etc/zsh/newuser.zshrc.recommended
--- zsh-common-orig/data/etc/zsh/newuser.zshrc.recommended 2014-10-07 18:29:08.0 -0500
+++ zsh-common/data/etc/zsh/newuser.zshrc.recommended 1969-12-31 18:00:00.0 -0600
@@ -1,37 +0,0 @@
-# Set up the prompt
-
-autoload -Uz promptinit
-promptinit
-prompt adam1
-
-setopt histignorealldups sharehistory
-
-# Use emacs keybindings even if our EDITOR is set to vi
-bindkey -e
-
-# Keep 1000 lines of history within the shell and save it to ~/.zsh_history:
-HISTSIZE=1000
-SAVEHIST=1000
-HISTFILE=~/.zsh_history
-
-# Use modern completion system
-autoload -Uz compinit
-compinit
-
-zstyle ':completion:*' auto-description 'specify: %d'
-zstyle ':completion:*' completer _expand _complete _correct _approximate
-zstyle ':completion:*' format 'Completing %d'
-zstyle ':completion:*' group-name ''
-zstyle ':completion:*' menu select=2
-eval "$(dircolors -b)"
-zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}
-zstyle ':completion:*' list-colors ''
-zstyle ':completion:*' list-prompt %SAt %p: Hit TAB for more, or the character to insert%s
-zstyle ':completion:*' matcher-list '' 'm:{a-z}={A-Z}' 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=* l:|=*'
-zstyle ':completion:*' menu select=long
-zstyle ':completion:*' select-prompt %SScrolling active: current selection at %p%s
-zstyle ':completion:*' use-compctl false
-zstyle ':completion:*' verbose true
-
-zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#)*=0=01;31'
-zstyle ':completion:*:kill:*' command 'ps -u $USER -o pid,%cpu,tty,cputime,cmd'
diff -Naur zsh-common-orig/data/etc/zsh/zlogin zsh-common/data/etc/zsh/zlogin
--- zsh-common-orig/data/etc/zsh/zlogin 2014-10-07 18:29:08.0 -0500
+++ zsh-common/data/etc/zsh/zlogin 1969-12-31 18:00:00.0 -0600
@@ -1,9 +0,0 @@
-# /etc/zsh/zlogin: system-wide .zlogin file for zsh(1).
-#
-# This file is sourced only for login shells. It
-# should contain commands that should be executed only
-# in login shells. It should be used to set the terminal
-# type and run a series of external commands (fortune,
-# msgs, from, etc.)
-#
-# Global Order: zshenv, zprofile, zshrc, zlogin
diff -Naur zsh-common-orig/data/etc/zsh/zlogout zsh-common/data/etc/zsh/zlogout
---