-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bash_profile
47 lines (35 loc) · 1.15 KB
/
.bash_profile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# ~/.bash_profile
# .bash_profile is executed for login shells
# Print a message
echo "Processing ~/.bash_profile..."
echo "Hello, $USER"
# Set preferred Linux Console font from /usr/share/kbd/consolefonts/
setfont Lat2-Terminus16.psfu
# Environment Variables
# this one is global/system-wide so put in /etc/environment
# export VDPAU_DRIVER=radeonsi
# preferred terminal editor
export EDITOR=nano
# Add color in manpages for less
export LESS_TERMCAP_mb=$'\E[01;31m'
export LESS_TERMCAP_md=$'\E[01;31m'
export LESS_TERMCAP_me=$'\E[0m'
export LESS_TERMCAP_se=$'\E[0m'
export LESS_TERMCAP_so=$'\E[01;44;33m'
export LESS_TERMCAP_ue=$'\E[0m'
export LESS_TERMCAP_us=$'\E[01;32m'
# TTY Conditionals
# If running from tty1 (arch login) start a wm
if [ "$(tty)" = "/dev/tty1" ]; then
# Run a WM
exec sway
fi
# If running from any tty (virtual framebuffer console)
if [[ $(tty) =~ /dev/tty[1-9] ]]; then
# Set the Linux Console font: /usr/share/kbd/consolefonts/
# setfont Lat2-Terminus16.psfu
# General Purpose Mouse (in the console)
sudo gpm -B 123 -r 25 -m /dev/input/mice -t ps2
fi
# Run ~/.bashrc (if it exists)
[[ -f ~/.bashrc ]] && . ~/.bashrc