Added ~/.profile and ability to change tty console fonts in order to properly render powerline symbols

master
Meliurwen 3 years ago
parent 1b0589cb33
commit 08a374c309
Signed by: meliurwen
GPG Key ID: 818A8B35E9F1CE10
  1. 0
      common-shells/.aliases
  2. 20
      common-shells/.profile
  3. 8
      zsh/.zprofile

@ -0,0 +1,20 @@
#!/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
# Set font for console tty
# Source: https://github.com/powerline/fonts/tree/master/Terminus/PSF
if [ "$TERM" == "linux" ]; then
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
fi

@ -0,0 +1,8 @@
#!/bin/zsh
if [ -f "$HOME/.profile" ]; then
emulate sh
. $HOME/.profile
emulate zsh
fi
Loading…
Cancel
Save