Support 256 colours in the terminal
This commit is contained in:
parent
aa87b5c188
commit
d551818ff0
|
@ -85,6 +85,18 @@ CHECK_MESSAGE="Check your internet connection, /etc/network/interfaces and /etc/
|
||||||
# Default diffie-hellman key length in bits
|
# Default diffie-hellman key length in bits
|
||||||
DH_KEYLENGTH=2048
|
DH_KEYLENGTH=2048
|
||||||
|
|
||||||
|
function support_256_colours {
|
||||||
|
if ! grep 'xterm-256color' /etc/skel/.profile; then
|
||||||
|
echo '' >> /etc/skel/.profile
|
||||||
|
echo 'export TERM=xterm-256color' >> /etc/skel/.profile
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ! grep 'xterm-256color' /home/$MY_USERNAME/.profile; then
|
||||||
|
echo '' >> /home/$MY_USERNAME/.profile
|
||||||
|
echo 'export TERM=xterm-256color' >> /home/$MY_USERNAME/.profile
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
function detect_usb_drive {
|
function detect_usb_drive {
|
||||||
# sets to the highest available drive letter
|
# sets to the highest available drive letter
|
||||||
# which is likely to be the last drive connected
|
# which is likely to be the last drive connected
|
||||||
|
@ -679,6 +691,9 @@ function setup_utils {
|
||||||
function_check remove_management_engine_interface
|
function_check remove_management_engine_interface
|
||||||
remove_management_engine_interface
|
remove_management_engine_interface
|
||||||
|
|
||||||
|
function_check support_256_colours
|
||||||
|
support_256_colours
|
||||||
|
|
||||||
function_check enable_predictable_device_names
|
function_check enable_predictable_device_names
|
||||||
enable_predictable_device_names
|
enable_predictable_device_names
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue