:
else
echo 'shell/aliases: removing grep --color=auto'
- sed '/^alias grep=/ s/^/#/' shell/aliases > shell/aliases.tmp
- mv shell/aliases.tmp shell/aliases
+ sed_i '/^alias grep=/ s/^/#/' shell/aliases
fi
generate cat screenrc .in
fi
if test -z "$use_256colors"; then
echo screenrc: removing 256 colors
- sed 's/Enable 256 color/Disable 256 color/;
- s/screen-256color/screen/' screenrc > screenrc.tmp
- mv screenrc.tmp screenrc
+ sed_i 's/Enable 256 color/Disable 256 color/;
+ s/screen-256color/screen/' screenrc
fi
# Some options are only necessary when running as root. They are marked as
# "(ROOT)".
# it's installed.
if installed rxvt; then
echo screenrc: removing attrcolor \"fix\"
- sed 's/attrcolor b ".I"/#attrcolor b ".I"/' screenrc > screenrc.tmp
- mv screenrc.tmp screenrc
+ sed_i 's/attrcolor b ".I"/#attrcolor b ".I"/' screenrc
fi
# Display current battery charge on computers with a battery. Necessary lines
# are marked as "(BATTERY)".
# 256 colors not available.
if test -z "$use_256colors"; then
echo tmux.conf: removing 256 colors
- sed 's/Enable 256 color/Disable 256 color/;
- s/screen-256color/screen/' tmux.conf > tmux.conf.tmp
- mv tmux.conf.tmp tmux.conf
+ sed_i 's/Enable 256 color/Disable 256 color/;
+ s/screen-256color/screen/' tmux.conf
fi
# Tmux doesn't display a warning if the shell wasn't found!
if test ! -x '/bin/zsh'; then
echo tmux.conf: removing /bin/zsh as shell
- sed 's/zsh/sh/' tmux.conf > tmux.conf.tmp
- mv tmux.conf.tmp tmux.conf
+ sed_i 's/zsh/sh/' tmux.conf
fi
fi