mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-12-23 03:02:52 +01:00
bashrc & zshrc: enable apt progress bar from apt man page.
· The option DPkgPM::Progress-Fancy is enabled.
This commit is contained in:
parent
d40f136141
commit
f71637fcaa
1
bashrc
1
bashrc
@ -222,6 +222,7 @@ fi
|
|||||||
if [[ $USER = "root" ]]; then
|
if [[ $USER = "root" ]]; then
|
||||||
mkdir -p /etc/apt/apt.conf.d/
|
mkdir -p /etc/apt/apt.conf.d/
|
||||||
echo 'Dpkg::Progress-Fancy "1";' > /etc/apt/apt.conf.d/99progressbar
|
echo 'Dpkg::Progress-Fancy "1";' > /etc/apt/apt.conf.d/99progressbar
|
||||||
|
echo 'DPkgPM::Progress-Fancy "1";' >> /etc/apt/apt.conf.d/99progressbar
|
||||||
echo 'APT::Color "1";' > /etc/apt/apt.conf.d/99color
|
echo 'APT::Color "1";' > /etc/apt/apt.conf.d/99color
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
1
zshrc
1
zshrc
@ -168,6 +168,7 @@ fi
|
|||||||
if [[ $USER = "root" ]]; then
|
if [[ $USER = "root" ]]; then
|
||||||
mkdir -p /etc/apt/apt.conf.d/
|
mkdir -p /etc/apt/apt.conf.d/
|
||||||
echo 'Dpkg::Progress-Fancy "1";' > /etc/apt/apt.conf.d/99progressbar
|
echo 'Dpkg::Progress-Fancy "1";' > /etc/apt/apt.conf.d/99progressbar
|
||||||
|
echo 'DPkgPM::Progress-Fancy "1";' >> /etc/apt/apt.conf.d/99progressbar
|
||||||
echo 'APT::Color "1";' > /etc/apt/apt.conf.d/99color
|
echo 'APT::Color "1";' > /etc/apt/apt.conf.d/99color
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user