Modularized .profile base

This commit is contained in:
Eric Renfro 2022-09-19 16:41:27 -04:00
parent e7db262806
commit 0f4cd08c12
Signed by: psi-jack
GPG key ID: 14977F3A50D9A5BF
4 changed files with 44 additions and 36 deletions

1
.gitconfig Symbolic link
View file

@ -0,0 +1 @@
.gitconfig##f.arch

View file

@ -1,36 +0,0 @@
#if [[ -f /etc/solus-release ]]; then
# source /usr/share/defaults/etc/profile
#fi
case `uname` in
Linux)
EDITOR=/usr/bin/nvim
SUDO_EDITOR=/usr/bin/nvim
SYSTEMD_EDITOR=/usr/bin/nvim
VISUAL=/usr/bin/nvim
if [[ -x "/usr/lib/ssh/gnome-ssh-askpass3" ]]; then
SSH_ASKPASS=/usr/lib/ssh/gnome-ssh-askpass3
elif [[ -x "/usr/lib/seahorse/ssh-askpass" ]]; then
SSH_ASKPASS=/usr/lib/seahorse/ssh-askpass
fi
;;
Darwin)
EDITOR=nvim
SUDO_EDITOR=nvim
VISUAL=nvim
if [[ -r "/usr/local/bin/lesspipe.sh" ]]; then
export LESSOPEN="|/usr/local/bin/lesspipe.sh %s"
fi
;;
esac
# Default Environment
export EDITOR SUDO_EDITOR VISUAL
export PAGER=less
export SSH_ASKPASS
#export VIMINIT=":set runtimepath^=$HOME/.SpaceVim|:source $HOME/.SpaceVim/vimrc"
#export SPACEVIMDIR="$HOME/.SpaceVim.d/"
#export PATH=$PATH:$HOME/bin:$HOME/go/bin
#export QT_QPA_PLATFORMTHEME=qgnomeplatform
#. "$HOME/.cargo/env"

21
.profile##o.Darwin Normal file
View file

@ -0,0 +1,21 @@
#if [[ -f /etc/solus-release ]]; then
# source /usr/share/defaults/etc/profile
#fi
EDITOR=nvim
SUDO_EDITOR=nvim
VISUAL=nvim
if [[ -r "/usr/local/bin/lesspipe.sh" ]]; then
export LESSOPEN="|/usr/local/bin/lesspipe.sh %s"
fi
# Default Environment
export EDITOR SUDO_EDITOR VISUAL
export PAGER=less
export SSH_ASKPASS
#export VIMINIT=":set runtimepath^=$HOME/.SpaceVim|:source $HOME/.SpaceVim/vimrc"
#export SPACEVIMDIR="$HOME/.SpaceVim.d/"
#export PATH=$PATH:$HOME/bin:$HOME/go/bin
#export QT_QPA_PLATFORMTHEME=qgnomeplatform
#. "$HOME/.cargo/env"

22
.profile##o.Linux Normal file
View file

@ -0,0 +1,22 @@
#if [[ -f /etc/solus-release ]]; then
# source /usr/share/defaults/etc/profile
#fi
export EDITOR=/usr/bin/nvim
export SUDO_EDITOR=/usr/bin/nvim
export SYSTEMD_EDITOR=/usr/bin/nvim
export VISUAL=/usr/bin/nvim
if [[ -x "/usr/lib/ssh/gnome-ssh-askpass3" ]]; then
export SSH_ASKPASS=/usr/lib/ssh/gnome-ssh-askpass3
elif [[ -x "/usr/lib/seahorse/ssh-askpass" ]]; then
export SSH_ASKPASS=/usr/lib/seahorse/ssh-askpass
fi
# Default Environment
export PAGER=less
#export VIMINIT=":set runtimepath^=$HOME/.SpaceVim|:source $HOME/.SpaceVim/vimrc"
#export SPACEVIMDIR="$HOME/.SpaceVim.d/"
#export PATH=$PATH:$HOME/bin:$HOME/go/bin
#export QT_QPA_PLATFORMTHEME=qgnomeplatform
#. "$HOME/.cargo/env"