Modularized .profile base
This commit is contained in:
parent
e7db262806
commit
0f4cd08c12
4 changed files with 44 additions and 36 deletions
1
.gitconfig
Symbolic link
1
.gitconfig
Symbolic link
|
@ -0,0 +1 @@
|
|||
.gitconfig##f.arch
|
36
.profile
36
.profile
|
@ -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
21
.profile##o.Darwin
Normal 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
22
.profile##o.Linux
Normal 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"
|
Loading…
Reference in a new issue