mirror of https://gitlab.com/meliurwen/dotfiles
Added ~/.profile and ability to change tty console fonts in order to properly render powerline symbols
parent
1b0589cb33
commit
08a374c309
@ -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…
Reference in new issue