updated stuffs
This commit is contained in:
parent
aad676ae04
commit
4bdb65b4b8
14 changed files with 127 additions and 39 deletions
|
@ -6,7 +6,6 @@ brewpr="$(/home/linuxbrew/.linuxbrew/bin/brew --prefix)"
|
|||
gembin="$(ruby -e "puts Gem.user_dir")/bin"
|
||||
BASHER_SHELL=zsh
|
||||
BASHER_ROOT=/home/eeleater/.basher
|
||||
FN_API_URL=https://faas.eeleater.org
|
||||
|
||||
# Path
|
||||
path=(${brewpr}/sbin ${brewpr}/bin) # Homebrew
|
||||
|
@ -21,9 +20,6 @@ if pacman -Qm android-sdk-build-tools &>/dev/null; then
|
|||
path+=(/opt/android-sdk/build-tools/${asdkver}); # Android SDK
|
||||
fi
|
||||
|
||||
if test -d /games; then
|
||||
path+=(/games/weidu/bin/amd64)
|
||||
fi
|
||||
path+=(/opt/phalcon-devtools)
|
||||
|
||||
PTOOLSPATH="/opt/phalcon-devtools/"
|
||||
|
@ -46,12 +42,8 @@ fpath+=(${brewpr}/share/zsh/site-functions)
|
|||
fpath+=(${dotlib}/local)
|
||||
fpath+=(${BASHER_ROOT}/cellar/completions/zsh)
|
||||
|
||||
# IPFS
|
||||
IPFS_PATH=/var/lib/ipfs/repo
|
||||
VAULT_ADDR=http://127.0.0.1:8200
|
||||
|
||||
# Actually export
|
||||
export dotlib dotcfg brewpr gembin PATH MANPATH INFOPATH EDITOR XDG_DATA_DIRS PTOOLSPATH IPFSPATH VAULT_ADDR FN_API_URL
|
||||
export dotlib dotcfg brewpr gembin PATH MANPATH INFOPATH EDITOR XDG_DATA_DIRS PTOOLSPATH
|
||||
|
||||
# Reload all Prompts
|
||||
autoload -U promptinit && promptinit
|
||||
autoload -U promptinit && promptinit
|
|
@ -1,4 +1,4 @@
|
|||
export ZSH="${dotlib}/ohmyzsh"
|
||||
DISABLE_AUTO_UPDATE="true"
|
||||
ZSH_DISABLE_COMPFIX="true"
|
||||
source ${ZSH}/oh-my-zsh.sh
|
||||
source ${ZSH}/oh-my-zsh.sh
|
|
@ -1,4 +1,4 @@
|
|||
alias brews='brew list -1'
|
||||
alias bubo='brew update && brew outdated'
|
||||
alias bubc='brew upgrade && brew cleanup'
|
||||
alias bubu='bubo && bubc'
|
||||
alias bubu='bubo && bubc'
|
|
@ -56,6 +56,62 @@ if (( $+commands[yaourt] )); then
|
|||
fi
|
||||
fi
|
||||
|
||||
if (( $+commands[yay] )); then
|
||||
alias yaconf='yay -Pg'
|
||||
alias yaupg='yay -Syu'
|
||||
alias yasu='yay -Syu --noconfirm'
|
||||
alias yain='yay -S'
|
||||
alias yains='yay -U'
|
||||
alias yare='yay -R'
|
||||
alias yarem='yay -Rns'
|
||||
alias yarep='yay -Si'
|
||||
alias yareps='yay -Ss'
|
||||
alias yaloc='yay -Qi'
|
||||
alias yalocs='yay -Qs'
|
||||
alias yalst='yay -Qe'
|
||||
alias yaorph='yay -Qtd'
|
||||
alias yainsd='yay -S --asdeps'
|
||||
alias yamir='yay -Syy'
|
||||
|
||||
|
||||
if (( $+commands[abs] && $+commands[aur] )); then
|
||||
alias yaupd='yay -Sy && sudo abs && sudo aur'
|
||||
elif (( $+commands[abs] )); then
|
||||
alias yaupd='yay -Sy && sudo abs'
|
||||
elif (( $+commands[aur] )); then
|
||||
alias yaupd='yay -Sy && sudo aur'
|
||||
else
|
||||
alias yaupd='yay -Sy'
|
||||
fi
|
||||
fi
|
||||
|
||||
if (( $+commands[pacaur] )); then
|
||||
alias paupg='pacaur -Syu'
|
||||
alias pasu='pacaur -Syu --noconfirm'
|
||||
alias pain='pacaur -S'
|
||||
alias pains='pacaur -U'
|
||||
alias pare='pacaur -R'
|
||||
alias parem='pacaur -Rns'
|
||||
alias parep='pacaur -Si'
|
||||
alias pareps='pacaur -Ss'
|
||||
alias paloc='pacaur -Qi'
|
||||
alias palocs='pacaur -Qs'
|
||||
alias palst='pacaur -Qe'
|
||||
alias paorph='pacaur -Qtd'
|
||||
alias painsd='pacaur -S --asdeps'
|
||||
alias pamir='pacaur -Syy'
|
||||
|
||||
if (( $+commands[abs] && $+commands[aur] )); then
|
||||
alias paupd='pacaur -Sy && sudo abs && sudo aur'
|
||||
elif (( $+commands[abs] )); then
|
||||
alias paupd='pacaur -Sy && sudo abs'
|
||||
elif (( $+commands[aur] )); then
|
||||
alias paupd='pacaur -Sy && sudo aur'
|
||||
else
|
||||
alias paupd='pacaur -Sy'
|
||||
fi
|
||||
fi
|
||||
|
||||
if (( $+commands[trizen] )); then
|
||||
function upgrade() {
|
||||
trizen -Syu
|
||||
|
@ -68,12 +124,17 @@ elif (( $+commands[yaourt] )); then
|
|||
function upgrade() {
|
||||
yaourt -Syu
|
||||
}
|
||||
elif (( $+commands[yay] )); then
|
||||
function upgrade() {
|
||||
yay -Syu
|
||||
}
|
||||
else
|
||||
function upgrade() {
|
||||
sudo pacman -Syu
|
||||
}
|
||||
fi
|
||||
|
||||
# Pacman - https://wiki.archlinux.org/index.php/Pacman_Tips
|
||||
alias pacupg='sudo pacman -Syu'
|
||||
alias pacin='sudo pacman -S'
|
||||
alias pacins='sudo pacman -U'
|
||||
|
|
|
@ -5,4 +5,4 @@ for cmd in $cmds; do
|
|||
done
|
||||
|
||||
alias sc-enablenow="sc-enable --now"
|
||||
alias sc-disablenow="sc-disable --now"
|
||||
alias sc-disablenow="sc-disable --now"
|
|
@ -1,4 +1,4 @@
|
|||
[[ $- == *i* && -f "/usr/share/fzf/completion.zsh" ]] && source "/usr/share/fzf/completion.zsh" 2> /dev/null
|
||||
[[ -f "/usr/share/fzf/key-bindings.zsh" ]] && source "/usr/share/fzf/key-bindings.zsh"
|
||||
[[ $- == *i* && -f "/home/linuxbrew/.linuxbrew/opt/fzf/shell/completion.zsh" ]] && source "/home/linuxbrew/.linuxbrew/opt/fzf/shell/completion.zsh" 2> /dev/null
|
||||
[[ -f "/home/linuxbrew/.linuxbrew/opt/fzf/shell/key-bindings.zsh" ]] && source "/home/linuxbrew/.linuxbrew/opt/fzf/shell/key-bindings.zsh"
|
||||
[[ -f "/home/linuxbrew/.linuxbrew/opt/fzf/shell/key-bindings.zsh" ]] && source "/home/linuxbrew/.linuxbrew/opt/fzf/shell/key-bindings.zsh"
|
|
@ -1,3 +1,3 @@
|
|||
# Fix MobaXterm Home/End key with ZSH
|
||||
bindkey '^[[H' beginning-of-line
|
||||
bindkey '^[[F' end-of-line
|
||||
bindkey '^[[F' end-of-line
|
|
@ -7,4 +7,4 @@ for file in ${dotcfg}/zsh/cfg.d/source.d/*.zsh; do
|
|||
source $file
|
||||
done
|
||||
|
||||
source /usr/share/lmod/lmod/init/zsh
|
||||
source /usr/share/lmod/lmod/init/zsh
|
|
@ -4,4 +4,4 @@ for file in ${HOME}/dotfiles/cfg/zsh/cfg.d/*.zsh; do
|
|||
done
|
||||
|
||||
# Prompt
|
||||
prompt z4rr3t
|
||||
prompt z4rr3t
|
Loading…
Add table
Add a link
Reference in a new issue