run zshrc through shfmt, comment prompt line
This commit is contained in:
parent
4adde9d9f4
commit
427c7b3cf2
@ -25,7 +25,7 @@ export HISTSIZE=999999999
|
|||||||
export SAVEHIST=$HISTSIZE
|
export SAVEHIST=$HISTSIZE
|
||||||
|
|
||||||
# * * * * * * * * *
|
# * * * * * * * * *
|
||||||
## Shell Options *
|
# Shell Options *
|
||||||
# * * * * * * * * *
|
# * * * * * * * * *
|
||||||
|
|
||||||
# Setting options
|
# Setting options
|
||||||
@ -52,7 +52,7 @@ bindkey '^n' history-search-forward
|
|||||||
bindkey ' ' magic-space
|
bindkey ' ' magic-space
|
||||||
|
|
||||||
# * * * * * *
|
# * * * * * *
|
||||||
## Aliases *
|
# Aliases *
|
||||||
# * * * * * *
|
# * * * * * *
|
||||||
|
|
||||||
# core utils
|
# core utils
|
||||||
@ -102,17 +102,10 @@ touchx() { touch "$@" && chmod +x "$@"; }
|
|||||||
|
|
||||||
# git
|
# git
|
||||||
lazygit() {
|
lazygit() {
|
||||||
git commit -a -m "$*" && git push;
|
git commit -a -m "$*" && git push
|
||||||
}
|
}
|
||||||
lg() {
|
lg() {
|
||||||
lazygit "$*";
|
lazygit "$*"
|
||||||
}
|
|
||||||
|
|
||||||
# vim
|
|
||||||
swp_vimrc(){
|
|
||||||
mv ~/.vim/vimrc ~/.vim/vimrc.swp
|
|
||||||
mv ~/.vim/vimrc.min ~/.vim/vimrc
|
|
||||||
mv ~/.vim/vimrc.swp ~/.vim/vimrc.min
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# tmux
|
# tmux
|
||||||
@ -151,7 +144,8 @@ extract() {
|
|||||||
if [ -f "$n" ]; then
|
if [ -f "$n" ]; then
|
||||||
case "${n%,}" in
|
case "${n%,}" in
|
||||||
*.tar.bz2 | *.tar.gz | *.tar.xz | *.tbz2 | *.tgz | *.txz | *.tar)
|
*.tar.bz2 | *.tar.gz | *.tar.xz | *.tbz2 | *.tgz | *.txz | *.tar)
|
||||||
tar xvf "$n" ;;
|
tar xvf "$n"
|
||||||
|
;;
|
||||||
*.lzma) unlzma ./"$n" ;;
|
*.lzma) unlzma ./"$n" ;;
|
||||||
*.bz2) bunzip2 ./"$n" ;;
|
*.bz2) bunzip2 ./"$n" ;;
|
||||||
*.rar) unrar x -ad ./"$n" ;;
|
*.rar) unrar x -ad ./"$n" ;;
|
||||||
@ -159,7 +153,8 @@ extract() {
|
|||||||
*.zip) unzip ./"$n" ;;
|
*.zip) unzip ./"$n" ;;
|
||||||
*.z) uncompress ./"$n" ;;
|
*.z) uncompress ./"$n" ;;
|
||||||
*.7z | *.arj | *.cab | *.chm | *.deb | *.dmg | *.iso | *.lzh | *.msi | *.rpm | *.udf | *.wim | *.xar)
|
*.7z | *.arj | *.cab | *.chm | *.deb | *.dmg | *.iso | *.lzh | *.msi | *.rpm | *.udf | *.wim | *.xar)
|
||||||
7z x ./"$n" ;;
|
7z x ./"$n"
|
||||||
|
;;
|
||||||
*.xz) unxz ./"$n" ;;
|
*.xz) unxz ./"$n" ;;
|
||||||
*.exe) cabextract ./"$n" ;;
|
*.exe) cabextract ./"$n" ;;
|
||||||
*)
|
*)
|
||||||
@ -177,7 +172,7 @@ extract() {
|
|||||||
|
|
||||||
bkup() {
|
bkup() {
|
||||||
if [ -f "$1" ]; then
|
if [ -f "$1" ]; then
|
||||||
cp "${1}" "${1}.bkup.$(date +'%F.%R')";
|
cp "${1}" "${1}.bkup.$(date +'%F.%R')"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -242,7 +237,7 @@ git_prompt() {
|
|||||||
printf "%s" "%F{reset}]"
|
printf "%s" "%F{reset}]"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
PROMPT='%F{blue}%~$(git_prompt) %F{yellow}%# %F{reset}'
|
# PROMPT='%F{blue}%~$(git_prompt) %F{green}%# %F{reset}'
|
||||||
|
|
||||||
# * * * * * * * * * * * * * * * * * * *
|
# * * * * * * * * * * * * * * * * * * *
|
||||||
# Language Specific Version Managers *
|
# Language Specific Version Managers *
|
||||||
@ -308,7 +303,6 @@ if command -v cargo > /dev/null; then
|
|||||||
src_rust
|
src_rust
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
# * * * * * * * * * * * *
|
# * * * * * * * * * * * *
|
||||||
# MISC $PATH Additions *
|
# MISC $PATH Additions *
|
||||||
# * * * * * * * * * * * *
|
# * * * * * * * * * * * *
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user