You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
dotfiles/common-shells/.profile

29 lines
861 B

#!/bin/sh
# ~/.profile: executed by the command interpreter for login shells.
#
# This file is not read by bash, if ~/.bash_profile or ~/.bash_login exists.
#
# The default umask is set in /etc/profile; for setting the umask for ssh
# logins, install and configure the libpam-umask package.
#umask 022
# If inside a TTY
if [ "$TERM" = "linux" ]; then
# Set font for TTY
# Source: https://github.com/powerline/fonts/tree/master/Terminus/PSF
CONSOLE_FONTD=$HOME/.local/share/consolefonts
CONSOLE_FONT=ter-powerline-v12n.psf.gz
if [ -f "$CONSOLE_FONTD/$CONSOLE_FONT" ]; then
setfont "$CONSOLE_FONTD/$CONSOLE_FONT"
fi
# Enable numlock for TTY
if command -v setleds; then
setleds -D +num
fi
fi
if [ -r "${XDG_CONFIG_HOME:-$HOME/.config/locale.conf}" ]; then
. "${XDG_CONFIG_HOME:-$HOME/.config/locale.conf}"
fi