dotfiles

andersuno
git clone git://git.andersuno.nu/dotfiles.git
Log | Files | Refs | README

commit a31ea13d9e6a707da3184f23fceb36387d708f4a
parent 650899dfc120484b985b511599119746600a4b19
Author: andersuno <anders@desk.andersuno.nu>
Date:   Fri, 22 Jul 2022 20:22:17 +0200

Various updates / refactor

Diffstat:
M.bash_aliases | 6+++---
M.bashrc | 12++++++++++++
M.profile | 30+++++++++++++++---------------
D.zprofile | 2--
4 files changed, 30 insertions(+), 20 deletions(-)

diff --git a/.bash_aliases b/.bash_aliases @@ -8,11 +8,11 @@ alias shut='sudo shutdown now' alias grep='grep --color=auto' #Commands/Scripts + #alias x='startx' +alias k='kubectl' alias findt='sudo find / -path /timeshift -prune -o' alias timeshiftsync='/home/anders/Scripts/timeshiftsync.sh' #alias vifm='/home/anders/.config/vifm/scripts/vifmrun' -alias dotgit='/usr/bin/git --git-dir=$HOME/Repos/dotfiles/ --work-tree=$HOME' +#alias dotgit='/usr/bin/git --git-dir=$HOME/Repos/dotfiles/ --work-tree=$HOME' #alias unetbootin='sudo QT_GRAPHICSSYSTEM=native /usr/bin/unetbootin.elf' - -[ -f ~/.config/sshhosts ] && source ~/.config/sshhosts diff --git a/.bashrc b/.bashrc @@ -7,10 +7,22 @@ PS1='[\u@\h \W]\$ ' +# Source global definitions +if [ -f /etc/bashrc ]; then + . /etc/bashrc +fi + +# Source aliases if [ -f ~/.bash_aliases ]; then . ~/.bash_aliases fi +# User specific environment +if ! [[ "$PATH" =~ "$HOME/.local/bin:$HOME/bin:" ]] +then + PATH="$HOME/.local/bin:$HOME/bin:$PATH" +fi +export PATH #Foreground colors, Normal (non-bold) is the default, so the 0; prefix is optional. # diff --git a/.profile b/.profile @@ -1,17 +1,17 @@ #Exports -export XDG_CONFIG_HOME=$HOME/.config -export XDG_CACHE_HOME=$HOME/.cache -export XDG_DATA_HOME=$HOME/.local/share -export EDITOR="vim" -export SUDO_EDITOR="vim" -export VISUAL="vim" -export TERM="xterm-256color" -export TERMINAL="alacritty" -export BROWSER="Chromium" -export READER="zathura" +#export XDG_CONFIG_HOME=$HOME/.config +#export XDG_CACHE_HOME=$HOME/.cache +#export XDG_DATA_HOME=$HOME/.local/share +#export EDITOR="vim" +#export SUDO_EDITOR="vim" +#export VISUAL="vim" +#export TERM="xterm-256color" +#export TERMINAL="alacritty" +#export BROWSER="Chromium" +#export READER="zathura" #export FILE="ranger" #export RANGER_LOAD_DEFAULT_RC=FALSE -export ZDOTDIR="$HOME/.config/zsh" +#export ZDOTDIR="$HOME/.config/zsh" export LESS_TERMCAP_mb=$'\e[1;32m' export LESS_TERMCAP_md=$'\e[1;32m' @@ -21,9 +21,9 @@ export LESS_TERMCAP_so=$'\e[01;33m' export LESS_TERMCAP_ue=$'\e[0m' export LESS_TERMCAP_us=$'\e[1;4;31m' -PATH=$PATH:/usr/sbin -PATH=$PATH:/home/anders/.vim/bundle -PATH=$PATH:/usr/lib +#PATH=$PATH:/usr/sbin +#PATH=$PATH:/home/anders/.vim/bundle +#PATH=$PATH:/usr/lib # Start graphical server on tty1 if not already running. -[ "$(tty)" = "/dev/tty1" ] && ! pgrep -x Xorg >/dev/null && exec startx +#[ "$(tty)" = "/dev/tty1" ] && ! pgrep -x Xorg >/dev/null && exec startx diff --git a/.zprofile b/.zprofile @@ -1 +0,0 @@ -/home/anders/.profile -\ No newline at end of file