-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzshrc
60 lines (49 loc) · 1.66 KB
/
zshrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# If you come from bash you might have to change your $PATH.
export PATH=$HOME/bin:$HOME/scripts:/usr/local/bin:$HOME/dotfiles/scripts:$PATH
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
export VISUAL=vim
export EDITOR="$VISUAL"
export TERM=xterm-256color
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
ZSH_THEME="robbyrussell"
# Which plugins would you like to load?
# Standard plugins can be found in ~/.oh-my-zsh/plugins/*
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(git adb encode64 extract command-not-found zsh-autosuggestions zsh-syntax-highlighting)
source $ZSH/oh-my-zsh.sh
# Enable fzf keybindings and fuzzy auto-completion for Zsh
if [ -f /usr/share/doc/fzf/examples/key-bindings.zsh ]
then
source /usr/share/doc/fzf/examples/key-bindings.zsh
fi
if [ -f /usr/share/doc/fzf/examples/completion.zsh ]
then
source /usr/share/doc/fzf/examples/completion.zsh
fi
# User configuration
function mkcd()
{
mkdir $1 && cd $1
}
# Aliases
which xdg-open > /dev/null
if [ $? = 0 ]
then
alias open=xdg-open
fi
alias lv="java -jar ~/bin/log-viewer/LogViewer.jar"
alias d2j="sh ~/bin/dex-tools-2.0/dex2jar-2.0/d2j-dex2jar.sh -f"
alias python=python3
source $HOME/.config/broot/launcher/bash/br
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=#888,underline"
which neofetch > /dev/null
if [ $? = 0 ]
then
neofetch
fi