Update .zshrc
This commit is contained in:
parent
2481dd9c95
commit
882ee77db3
@ -14,8 +14,8 @@ unsetopt beep
|
|||||||
bindkey -v
|
bindkey -v
|
||||||
# End of lines configured by zsh-newuser-install
|
# End of lines configured by zsh-newuser-install
|
||||||
|
|
||||||
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git
|
#git clone https://github.com/zsh-users/zsh-syntax-highlighting.git
|
||||||
echo "source ${(q-)PWD}/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> ${ZDOTDIR:-$HOME}/.zshrc
|
#echo "source ${(q-)PWD}/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> ${ZDOTDIR:-$HOME}/.zshrc
|
||||||
source ./zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
source ./zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
||||||
|
|
||||||
# prompt stuff
|
# prompt stuff
|
||||||
@ -42,17 +42,25 @@ vcs_info_wrapper() {
|
|||||||
export RPROMPT=$'%@ $(vcs_info_wrapper) %?'
|
export RPROMPT=$'%@ $(vcs_info_wrapper) %?'
|
||||||
#other stuff
|
#other stuff
|
||||||
|
|
||||||
clear
|
# clear
|
||||||
screenfetch
|
# screenfetch
|
||||||
|
|
||||||
#dont mess with this
|
#dont mess with this
|
||||||
alias ls="ls --color=auto"
|
alias ls="ls --color=auto"
|
||||||
|
|
||||||
|
alias pip="python3 -m pip"
|
||||||
|
|
||||||
# aliases
|
# aliases
|
||||||
|
|
||||||
|
#pandoc
|
||||||
|
alias docx="pandoc -s -o"
|
||||||
|
|
||||||
|
alias school="cd /media/removable/SD\ Card/School"
|
||||||
|
alias sdcard="cd /media/removable/SD\ Card/"
|
||||||
alias ll="ls -l"
|
alias ll="ls -l"
|
||||||
alias la="ls -a"
|
alias la="ls -a"
|
||||||
alias please='sudo $(history -p !!)'
|
alias please='sudo $(history -p !!)'
|
||||||
alias vi=vim
|
# alias vi=vim
|
||||||
alias :q="exit"
|
alias :q="exit"
|
||||||
alias :wq="exit"
|
alias :wq="exit"
|
||||||
alias cls=clear
|
alias cls=clear
|
||||||
@ -68,6 +76,14 @@ sci(){
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
search(){
|
||||||
|
if [ $# != 1 ]; then
|
||||||
|
echo "please enter a name to search for"
|
||||||
|
else
|
||||||
|
ls | grep "$1"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
csearch(){
|
csearch(){
|
||||||
if [ $# != 1 ]; then
|
if [ $# != 1 ]; then
|
||||||
echo "Usage: csearch <search term>"
|
echo "Usage: csearch <search term>"
|
||||||
@ -133,4 +149,12 @@ extract () {
|
|||||||
else
|
else
|
||||||
echo "'$1' is not a valid file!"
|
echo "'$1' is not a valid file!"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
#cls
|
||||||
|
#screenfetch
|
||||||
|
source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
|
||||||
|
source /home/chronos/user/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
||||||
|
|
||||||
|
eval $(thefuck --alias)
|
||||||
|
export PATH=/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/local/share/texlive/2017/bin/x86_64-linux
|
||||||
|
export MANPATH=/usr/local/share/man:/usr/share/man:/usr/local/share/texlive/2017/bin/texmf-dist/doc/man
|
||||||
|
Loading…
x
Reference in New Issue
Block a user