fix: add more zsh stuff
This commit is contained in:
parent
a2ce697b17
commit
0cd1c2011b
1 changed files with 21 additions and 18 deletions
|
@ -2,27 +2,28 @@
|
||||||
|
|
||||||
# Raine's .zshrc
|
# Raine's .zshrc
|
||||||
|
|
||||||
|
export EDITOR=vim
|
||||||
export GPG_TTY=$(tty)
|
export GPG_TTY=$(tty)
|
||||||
export PATH="$PATH:$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$HOME/.local/bin"
|
export PATH="$PATH:$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$HOME/.local/bin"
|
||||||
export ZSH="$HOME/.oh-my-zsh"
|
|
||||||
|
|
||||||
ZSH_THEME="afowler"
|
# oh-my-zsh init
|
||||||
plugins=(git docker docker-compose node zsh-autosuggestions zsh-syntax-highlighting)
|
if [ -f "$HOME/.oh-my-zsh/oh-my-zsh.sh" ]; then
|
||||||
source $ZSH/oh-my-zsh.sh
|
export ZSH="$HOME/.oh-my-zsh"
|
||||||
|
ZSH_THEME="afowler"
|
||||||
# ALIASES
|
plugins=(git docker docker-compose node zsh-autosuggestions zsh-syntax-highlighting)
|
||||||
alias open="xdg-open"
|
source $ZSH/oh-my-zsh.sh
|
||||||
alias s="title $HOST && cmatrix -rs && clear"
|
else
|
||||||
alias q="exit"
|
echo "oh-my-zsh not detected :("
|
||||||
|
PS1="$(whoami)@$(hostname) $ "
|
||||||
|
fi
|
||||||
|
|
||||||
update_dotfiles() {
|
update_dotfiles() {
|
||||||
cd $HOME/.dotfiles
|
cd $HOME/.dotfiles
|
||||||
git pull
|
git pull
|
||||||
cd - &> /dev/null
|
cd - &> /dev/null
|
||||||
}
|
}
|
||||||
alias udf="update_dotfiles"
|
|
||||||
|
|
||||||
function share_cdn() {
|
share_cdn() {
|
||||||
if ! [ -f "$1" ]; then
|
if ! [ -f "$1" ]; then
|
||||||
echo "file needs to exist"
|
echo "file needs to exist"
|
||||||
return 1
|
return 1
|
||||||
|
@ -30,3 +31,5 @@ function share_cdn() {
|
||||||
scp $1 keymaker:/usr/share/cdn/random/$2 > /dev/null
|
scp $1 keymaker:/usr/share/cdn/random/$2 > /dev/null
|
||||||
echo "https://cdn.ixvd.net/random/${2:-$(basename $1)}"
|
echo "https://cdn.ixvd.net/random/${2:-$(basename $1)}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
alias q="exit"
|
Loading…
Reference in a new issue