zsh: Clean up, add plugins and functions
This commit is contained in:
parent
0d9a76a12f
commit
08252a504e
51
zsh/.zshrc
51
zsh/.zshrc
@ -2,6 +2,7 @@
|
|||||||
# export PATH=$HOME/bin:/usr/local/bin:$PATH
|
# export PATH=$HOME/bin:/usr/local/bin:$PATH
|
||||||
export PATH=/home/julian/emacs/doom-emacs/bin:$PATH
|
export PATH=/home/julian/emacs/doom-emacs/bin:$PATH
|
||||||
export PATH=/home/julian/.cargo/bin:$PATH
|
export PATH=/home/julian/.cargo/bin:$PATH
|
||||||
|
export PATH=/home/julian/perl5/bin:$PATH
|
||||||
|
|
||||||
# Path to your oh-my-zsh installation.
|
# Path to your oh-my-zsh installation.
|
||||||
export ZSH="$HOME/.oh-my-zsh"
|
export ZSH="$HOME/.oh-my-zsh"
|
||||||
@ -73,47 +74,37 @@ export ZSH="$HOME/.oh-my-zsh"
|
|||||||
# Custom plugins may be added to $ZSH_CUSTOM/plugins/
|
# Custom plugins may be added to $ZSH_CUSTOM/plugins/
|
||||||
# Example format: plugins=(rails git textmate ruby lighthouse)
|
# Example format: plugins=(rails git textmate ruby lighthouse)
|
||||||
# Add wisely, as too many plugins slow down shell startup.
|
# Add wisely, as too many plugins slow down shell startup.
|
||||||
plugins=(zsh-z colored-man-pages zsh-interactive-cd)
|
plugins=(
|
||||||
|
zsh-z
|
||||||
|
web-search
|
||||||
|
dirhistory
|
||||||
|
# colored-man-pages
|
||||||
|
# zsh-interactive-cd
|
||||||
|
# jsontools
|
||||||
|
|
||||||
|
# make it behave like fish
|
||||||
|
zsh-autosuggestions
|
||||||
|
zsh-history-substring-search
|
||||||
|
zsh-syntax-highlighting
|
||||||
|
)
|
||||||
|
|
||||||
source $ZSH/oh-my-zsh.sh
|
source $ZSH/oh-my-zsh.sh
|
||||||
|
|
||||||
# User configuration
|
|
||||||
|
|
||||||
# export MANPATH="/usr/local/man:$MANPATH"
|
|
||||||
|
|
||||||
# You may need to manually set your language environment
|
|
||||||
# export LANG=en_US.UTF-8
|
|
||||||
|
|
||||||
# Preferred editor for local and remote sessions
|
|
||||||
# if [[ -n $SSH_CONNECTION ]]; then
|
|
||||||
# export EDITOR='vim'
|
|
||||||
# else
|
|
||||||
# export EDITOR='mvim'
|
|
||||||
# fi
|
|
||||||
|
|
||||||
# Compilation flags
|
|
||||||
# export ARCHFLAGS="-arch x86_64"
|
|
||||||
|
|
||||||
# Set personal aliases, overriding those provided by oh-my-zsh libs,
|
|
||||||
# plugins, and themes. Aliases can be placed here, though oh-my-zsh
|
|
||||||
# users are encouraged to define aliases within the ZSH_CUSTOM folder.
|
|
||||||
# For a full list of active aliases, run `alias`.
|
|
||||||
#
|
|
||||||
# Example aliases
|
|
||||||
# alias zshconfig="mate ~/.zshrc"
|
|
||||||
# alias ohmyzsh="mate ~/.oh-my-zsh"
|
|
||||||
|
|
||||||
alias vi="nvim"
|
alias vi="nvim"
|
||||||
alias ls="ls --color"
|
alias ls="ls --color"
|
||||||
alias grep="grep --color"
|
alias grep="grep --color"
|
||||||
alias la="ls -Alh --color"
|
alias la="ls -Alh --color"
|
||||||
|
alias g="git status"
|
||||||
|
alias bat="bat --paging=never"
|
||||||
|
|
||||||
mkcd ()
|
mkcd ()
|
||||||
{
|
{
|
||||||
mkdir -p -- "$1" && cd -P -- "$1"
|
mkdir -p -- "$1" && cd -P -- "$1"
|
||||||
}
|
}
|
||||||
|
|
||||||
eval "$(starship init zsh)"
|
follow_du () {
|
||||||
|
/usr/local/bin/follow_du "$@"
|
||||||
|
cd $(cat /tmp/follow_du_workdir)
|
||||||
|
}
|
||||||
|
|
||||||
# pacman -S zsh-syntax-highlighting
|
eval "$(starship init zsh)"
|
||||||
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.plugin.zsh
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user