rename .stemmet to .psoxizsh
This commit is contained in:
parent
23292c9500
commit
4360e40aa2
|
@ -0,0 +1,8 @@
|
||||||
|
{
|
||||||
|
"files.associations": {
|
||||||
|
"vimrc": "viml",
|
||||||
|
"vimrc-local": "viml",
|
||||||
|
"zshrc": "shellscript",
|
||||||
|
"fresh-system": "shellscript"
|
||||||
|
}
|
||||||
|
}
|
|
@ -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
|
||||||
|
```
|
|
@ -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/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/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
|
[[ -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
|
install -v --mode=700 -d ~/.ssh
|
||||||
which zsh
|
which zsh
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
17
zshrc
17
zshrc
|
@ -17,7 +17,7 @@ then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Path to your oh-my-zsh installation.
|
# 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"
|
# 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.
|
# 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 rpm 2>&1 >/dev/null && echo rpm )
|
||||||
$( which yum 2>&1 >/dev/null && echo yum )
|
$( which yum 2>&1 >/dev/null && echo yum )
|
||||||
$( which kubeadm 2>&1 >/dev/null && echo kubeadm )
|
$( 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
|
vim-interaction
|
||||||
ssh-agent
|
ssh-agent
|
||||||
zsh-completions
|
zsh-completions
|
||||||
|
@ -105,11 +110,9 @@ plugins=(
|
||||||
|
|
||||||
if [[ "$OSTYPE" == "linux-gnu" ]]
|
if [[ "$OSTYPE" == "linux-gnu" ]]
|
||||||
then
|
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 VIMINIT='source $MYVIMRC'
|
||||||
export MYVIMRC=$HOME/.stemmet/vimrc
|
export MYVIMRC=$HOME/.psoxizsh/vimrc
|
||||||
export VIMHOME=$HOME/.stemmet/vim
|
export VIMHOME=$HOME/.psoxizsh/vim
|
||||||
fi
|
fi
|
||||||
|
|
||||||
source $ZSH/oh-my-zsh.sh
|
source $ZSH/oh-my-zsh.sh
|
||||||
|
@ -140,8 +143,8 @@ export EDITOR='vim'
|
||||||
# For a full list of active aliases, run `alias`.
|
# For a full list of active aliases, run `alias`.
|
||||||
#
|
#
|
||||||
# Example aliases
|
# Example aliases
|
||||||
alias zshconfig="vim ~/.stemmet/zshrc"
|
alias zshconfig="vim ~/.psoxizsh/zshrc"
|
||||||
alias ohmyzsh="vim ~/.stemmet/oh-my-zsh"
|
alias ohmyzsh="vim ~/.psoxizsh/oh-my-zsh"
|
||||||
[[ -x /usr/bin/code ]] && alias code='/usr/bin/code --user-data-dir="$(echo ~/vscode)" '
|
[[ -x /usr/bin/code ]] && alias code='/usr/bin/code --user-data-dir="$(echo ~/vscode)" '
|
||||||
|
|
||||||
typeset -A key
|
typeset -A key
|
||||||
|
|
Loading…
Reference in New Issue