From 0f4cd08c1247e98c4ffb6a47f3e131da0ffa0674 Mon Sep 17 00:00:00 2001 From: Eric Renfro Date: Mon, 19 Sep 2022 16:41:27 -0400 Subject: [PATCH] Modularized .profile base --- .gitconfig | 1 + .profile | 36 ------------------------------------ .profile##o.Darwin | 21 +++++++++++++++++++++ .profile##o.Linux | 22 ++++++++++++++++++++++ 4 files changed, 44 insertions(+), 36 deletions(-) create mode 120000 .gitconfig delete mode 100644 .profile create mode 100644 .profile##o.Darwin create mode 100644 .profile##o.Linux diff --git a/.gitconfig b/.gitconfig new file mode 120000 index 0000000..502a933 --- /dev/null +++ b/.gitconfig @@ -0,0 +1 @@ +.gitconfig##f.arch \ No newline at end of file diff --git a/.profile b/.profile deleted file mode 100644 index 2acddcb..0000000 --- a/.profile +++ /dev/null @@ -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" diff --git a/.profile##o.Darwin b/.profile##o.Darwin new file mode 100644 index 0000000..1c1a742 --- /dev/null +++ b/.profile##o.Darwin @@ -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" diff --git a/.profile##o.Linux b/.profile##o.Linux new file mode 100644 index 0000000..49393da --- /dev/null +++ b/.profile##o.Linux @@ -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"