mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-12-22 10:42:55 +01:00
bashrc & zshrc: enable apt colours.
This commit is contained in:
parent
f2180e81bb
commit
c34279aad8
4
bashrc
4
bashrc
@ -218,13 +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 we are on Linux, enable apt progress bar and colours
|
||||
if [[ $USER = "root" ]]; then
|
||||
mkdir -p /etc/apt/apt.conf.d/
|
||||
echo 'Dpkg::Progress-Fancy "1";' > /etc/apt/apt.conf.d/99progressbar
|
||||
echo 'APT::Color "1";' > /etc/apt/apt.conf.d/99color
|
||||
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
|
||||
|
3
zshrc
3
zshrc
@ -164,10 +164,11 @@ 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 we are on Linux, enable apt progress bar and colours
|
||||
if [[ $USER = "root" ]]; then
|
||||
mkdir -p /etc/apt/apt.conf.d/
|
||||
echo 'Dpkg::Progress-Fancy "1";' > /etc/apt/apt.conf.d/99progressbar
|
||||
echo 'APT::Color "1";' > /etc/apt/apt.conf.d/99color
|
||||
fi
|
||||
|
||||
# The above requires at least Mountain Lion.
|
||||
|
Loading…
Reference in New Issue
Block a user