rename .stemmet to .psoxizsh

This commit is contained in:
psox 2017-12-18 15:20:27 +00:00
parent 23292c9500
commit 4360e40aa2
4 changed files with 37 additions and 18 deletions

8
.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,8 @@
{
"files.associations": {
"vimrc": "viml",
"vimrc-local": "viml",
"zshrc": "shellscript",
"fresh-system": "shellscript"
}
}

9
README.md Normal file
View File

@ -0,0 +1,9 @@
# PSOXIZSH
## Install
```bash
git clone https://bitbucket.org/pSox/psoxizsh.git ~/.psoxzish
cd ~/.psoxizsh
git submodule update --init --recurse --recursive --jobs=2
```

View File

@ -7,8 +7,7 @@
[[ -e /etc/redhat-release ]] && yum install -y zsh bridge-utils psmisc vim git tree rsync bc wget tmux ctags yum-utils
[[ -e /etc/ubuntu-release ]] && apt install -y zsh bridge-utils psmisc vim git tree rsync bc wget tmux ctags yum-utils
[[ -e /etc/suse-release ]] && zypper install -y zsh bridge-utils psmisc vim git tree rsync bc wget tmux ctags yum-utils
grep -E '^source ~/.stemmet/zshrc' ~/.zshrc || echo 'source ~/.stemmet/zshrc' >>~/.zshrc
grep -E '^source ~/.psoxizsh/zshrc' ~/.zshrc || echo 'source ~/.psoxizsh/zshrc' >>~/.zshrc
install -v --mode=700 -d ~/.ssh
which zsh
)

17
zshrc
View File

@ -17,7 +17,7 @@ then
fi
# Path to your oh-my-zsh installation.
export ZSH=~/.stemmet/oh-my-zsh
export ZSH=~/.psoxizsh/oh-my-zsh
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
@ -95,6 +95,11 @@ plugins=(
$( which rpm 2>&1 >/dev/null && echo rpm )
$( which yum 2>&1 >/dev/null && echo yum )
$( which kubeadm 2>&1 >/dev/null && echo kubeadm )
$( [[ -e /etc/arch-release ]] && echo archlinux )
$( [[ -e /etc/centos-release ]] && echo fedora )
$( [[ -e /etc/redhat-release ]] && echo fedora )
$( [[ -e /etc/ubuntu-release ]] && echo ubuntu )
$( [[ -e /etc/suse-release ]] && echo suse )
vim-interaction
ssh-agent
zsh-completions
@ -105,11 +110,9 @@ plugins=(
if [[ "$OSTYPE" == "linux-gnu" ]]
then
grep -q -i centos /etc/*-release 2>/dev/null && plugins=( $plugins fedora )
grep -q -i archlinux /etc/*-release 2>/dev/null && plugins=( $plugins archlinux )
export VIMINIT='source $MYVIMRC'
export MYVIMRC=$HOME/.stemmet/vimrc
export VIMHOME=$HOME/.stemmet/vim
export MYVIMRC=$HOME/.psoxizsh/vimrc
export VIMHOME=$HOME/.psoxizsh/vim
fi
source $ZSH/oh-my-zsh.sh
@ -140,8 +143,8 @@ export EDITOR='vim'
# For a full list of active aliases, run `alias`.
#
# Example aliases
alias zshconfig="vim ~/.stemmet/zshrc"
alias ohmyzsh="vim ~/.stemmet/oh-my-zsh"
alias zshconfig="vim ~/.psoxizsh/zshrc"
alias ohmyzsh="vim ~/.psoxizsh/oh-my-zsh"
[[ -x /usr/bin/code ]] && alias code='/usr/bin/code --user-data-dir="$(echo ~/vscode)" '
typeset -A key