Removed .profile, updated bash dotfiles

This commit is contained in:
Andrew Scott 2023-04-02 02:36:17 -04:00
parent 303cfff792
commit d6c2d853e5
Signed by: a
GPG key ID: 7CD5A5977E4931C1
4 changed files with 28 additions and 20 deletions

4
dot_bash_logout Normal file
View file

@ -0,0 +1,4 @@
#
# ~/.bash_logout
#
clear_console

View file

@ -1,9 +0,0 @@
#
# ~/.bash_profile
#
[[ -f ~/.profile ]] && . ~/.profile
[[ -f ~/.bashrc ]] && . ~/.bashrc
[[ -z "${DISPLAY}" && "${XDG_VTNR}" -eq 1 ]] && exec startx

View file

@ -1,7 +1,10 @@
#
# ~/.profile
# ~/.bash_profile
#
export EDITOR=nvim
export VISUAL=emacs
# Ensure XDG env vars are set correctly
export XDG_CACHE_HOME="$HOME/.cache"
export XDG_CONFIG_HOME="$HOME/.config"
@ -14,6 +17,9 @@ export PATH="$HOME/.local/bin:$PATH"
# make Java behave when not using a DE
export _JAVA_AWT_WM_NONREPARENTING=1
# Sometimes needed for gpg passphrase prompt
export GPG_TTY=$(tty)
# xsecurelock settings
export XSECURELOCK_AUTH=auth_x11
export XSECURELOCK_AUTHPROTO=authproto_pam
@ -64,3 +70,12 @@ export WINEPREFIX="$XDG_DATA_HOME"/wine
# Xorg
export XINITRC="$XDG_CONFIG_HOME"/X11/xinitrc
export XAUTHORITY="$XDG_RUNTIME_DIR"/Xauthority
# Source other dotfiles
[[ -f ~/.profile ]] && . ~/.profile
[[ -f ~/.bashrc ]] && . ~/.bashrc
# startx
[[ -z "${DISPLAY}" && "${XDG_VTNR}" -eq 1 ]] && exec startx

View file

@ -2,20 +2,18 @@
# ~/.bashrc
#
# If not running interactively, don't do anything
# Return if non-interactive
[[ $- != *i* ]] && return
PS1='[\e[38;5;107m\u\e[0m@\h \e[38;5;74m\w\e[0m]\$ '
alias diff='diff --color=auto'
alias grep='grep --color=auto'
alias ip='ip -color=auto'
alias ls='ls --color=auto'
PS1='[\u@\h \W]\$ '
export GPG_TTY=$(tty)
export EDITOR=nvim
alias nv=nvim
alias r="urxvt -name Ranger -e ranger & disown"
alias vim=nvim
alias r="kitty --class=Ranger ranger & disown"
alias kssh="/usr/bin/kitty +kitten ssh"
alias wget=wget --hsts-file="$XDG_STATE_HOME/wget-hsts"
neofetch
[ -f /opt/miniconda3/etc/profile.d/conda.sh ] && source /opt/miniconda3/etc/profile.d/conda.sh