mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-25 12:49:26 +01:00
bashrc & zshrc: enable apt process bar.
If we are as root, mkdir -p /etc/apt/apt.conf.d and run the command echo 'Dpkg::Progress-Fancy "1";' > /etc/apt/apt.conf.d/99progressbar . This is untested and I am unsure what does OS X think about this, but I don't have OS X anywhere, so I might not care about it so much.
This commit is contained in:
parent
9cd9b8c34d
commit
38f87d6933
7
bashrc
7
bashrc
@ -218,6 +218,13 @@ if [[ $UNAME = "Darwin" && $USER = "root" ]]; then
|
||||
fi
|
||||
# The above requires at least Mountain Lion.
|
||||
|
||||
# If we are on Linux, enable apt process bar.
|
||||
if [[ $USER = "root" ]]; then
|
||||
mkdir -p /etc/apt/apt.conf.d/
|
||||
echo 'Dpkg::Progress-Fancy "1";' > /etc/apt/apt.conf.d/99progressbar
|
||||
fi
|
||||
|
||||
|
||||
# Copied from http://homepages.see.leeds.ac.uk/~eeaol/notes/2012/03/how_to_only_type_ssh_passphrase_once/
|
||||
export SSH_AUTH_SOCK=/tmp/$USER.agent
|
||||
ssh-agent -a /tmp/$USER.agent > /dev/null 2>&1
|
||||
|
7
zshrc
7
zshrc
@ -163,6 +163,13 @@ fi
|
||||
if [[ $UNAME = "Darwin" && $USER = "root" ]]; then
|
||||
defaults write /Library/Preferences/com.apple.SoftwareUpdate ScheduleFrequency 1
|
||||
fi
|
||||
|
||||
# If we are on Linux, enable apt process bar.
|
||||
if [[ $USER = "root" ]]; then
|
||||
mkdir -p /etc/apt/apt.conf.d/
|
||||
echo 'Dpkg::Progress-Fancy "1";' > /etc/apt/apt.conf.d/99progressbar
|
||||
fi
|
||||
|
||||
# The above requires at least Mountain Lion.
|
||||
|
||||
# In our series useless/weird environment variables, beep
|
||||
|
Loading…
Reference in New Issue
Block a user