X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=etc%2Fzsh%2Fzshrc;h=a6f967037bad0b69f8c0028d16aab62a93ea56b4;hb=d0c99ea503ef53c6998b36da7dbe9f2c026a8aeb;hp=72fde6edb36784ab9131c4cbd753f74bd8d45f06;hpb=cdc48e89c5ae0fe84ae458a20ebdd36282a2e81c;p=grml-etc-core.git diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 72fde6e..a6f9670 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -1617,7 +1617,7 @@ chpwd() { builtin print -l ${GRML_PERSISTENT_DIRSTACK} >! ${DIRSTACKFILE} } -if [[ -f ${DIRSTACKFILE} ]] && [[ ${#dirstack[*]} -eq 0 ]] ; then +if [[ -f ${DIRSTACKFILE} ]]; then # Enabling NULL_GLOB via (N) weeds out any non-existing # directories from the saved dir-stack file. dirstack=( ${(f)"$(< $DIRSTACKFILE)"}(N) ) @@ -2504,16 +2504,14 @@ hash -d www=/var/www if check_com -c screen ; then if [[ $UID -eq 0 ]] ; then if [[ -r /etc/grml/screenrc ]]; then - alias screen="${commands[screen]} -c /etc/grml/screenrc" + alias screen='screen -c /etc/grml/screenrc' fi - elif [[ -r $HOME/.screenrc ]] ; then - alias screen="${commands[screen]} -c $HOME/.screenrc" - else + elif [[ ! -r $HOME/.screenrc ]] ; then if [[ -r /etc/grml/screenrc_grml ]]; then - alias screen="${commands[screen]} -c /etc/grml/screenrc_grml" + alias screen='screen -c /etc/grml/screenrc_grml' else if [[ -r /etc/grml/screenrc ]]; then - alias screen="${commands[screen]} -c /etc/grml/screenrc" + alias screen='screen -c /etc/grml/screenrc' fi fi fi @@ -2703,11 +2701,10 @@ __EOF0__ fi fi -# Use hard limits, except for a smaller stack and no core dumps -unlimit -is425 && limit stack 8192 -isgrmlcd && limit core 0 # important for a live-cd-system -limit -s +if isgrmlcd; then + # No core dumps: important for a live-cd-system + limit -s core 0 +fi # grmlstuff grmlstuff() { @@ -3515,17 +3512,6 @@ _simple_extract() compdef _simple_extract simple-extract alias se=simple-extract -#f5# Set all ulimit parameters to \kbd{unlimited} -allulimit() { - ulimit -c unlimited - ulimit -d unlimited - ulimit -f unlimited - ulimit -l unlimited - ulimit -n unlimited - ulimit -s unlimited - ulimit -t unlimited -} - #f5# Change the xterm title from within GNU-screen xtrename() { emulate -L zsh