+ Tweaking Zsh
This commit is contained in:
parent
fdfe0e8f67
commit
a15b74eaf2
3 changed files with 34 additions and 14 deletions
|
@ -17,7 +17,7 @@ bspc config focused_border_color "#60C0FF"
|
|||
#bspc config active_border_color $BORDER_NORMAL_COLOR
|
||||
bspc config active_border_color "#60C0ff"
|
||||
#bspc config normal_border_color
|
||||
bspc config window_gap 10
|
||||
bspc config window_gap 8
|
||||
bspc config top_padding 30
|
||||
bspc config bottom_padding 0
|
||||
bspc config left_padding 0
|
||||
|
|
|
@ -43,10 +43,11 @@ alias storagelist='lsblk -f'
|
|||
alias ..='cd ..'
|
||||
alias ...='cd ../..'
|
||||
alias q='exit'
|
||||
alias ls='exa --color=always'
|
||||
alias ll='ls -alF'
|
||||
alias l='ls -CF'
|
||||
alias la='ls -a'
|
||||
alias ls='exa --color=always --group-directories-first' # my preferred listing
|
||||
alias la='exa -a --color=always --group-directories-first' # all files and dirs
|
||||
alias ll='exa -l --color=always --group-directories-first' # long format
|
||||
alias lla='exa -al --color=always --group-directories-first' # long format
|
||||
alias lt='exa -aT --color=always --group-directories-first' # tree listing
|
||||
#config shortcuts
|
||||
alias cfvim='vim $XDG_CONFIG_HOME/vim/vimrc'
|
||||
alias cfbash='vim $HOME/.bashrc'
|
||||
|
@ -63,8 +64,10 @@ alias cp='cp -i'
|
|||
alias mntfd='sudo mount -o gid=users,fmask=113,dmask=002'
|
||||
alias umntfd='sudo umount'
|
||||
alias cmatrix='unimatrix -n -s 96 -l 'o''
|
||||
alias cdclg='cd "$HOME/my Files/Kuliah/"'
|
||||
|
||||
#Git Aliases
|
||||
alias gcl='git clone'
|
||||
alias gs='git status'
|
||||
alias gaa='git add --all'
|
||||
alias gcm='git commit -m'
|
||||
|
|
35
.zshrc
35
.zshrc
|
@ -25,7 +25,22 @@ HISTSIZE=1000
|
|||
SAVEHIST=1000
|
||||
|
||||
# Theme
|
||||
ZSH_THEME="zi"
|
||||
#ZSH_THEME="zi"
|
||||
ZSH_THEME="spaceship"
|
||||
# configuration
|
||||
SPACESHIP_CHAR_SYMBOL="$> "
|
||||
SPACESHIP_GIT_BRANCH_COLOR="magenta"
|
||||
SPACESHIP_GIT_PREFIX=""
|
||||
SPACESHIP_GIT_SUFFIX=""
|
||||
SPACESHIP_GIT_BRANCH_SUFFIX=""
|
||||
SPACESHIP_GIT_STATUS_PREFIX=' '
|
||||
SPACESHIP_GIT_STATUS_SUFFIX=''
|
||||
SPACESHIP_EXEC_TIME_SHOW=false
|
||||
SPACESHIP_DIR_COLOR="blue"
|
||||
SPACESHIP_DIR_TRUNC_PREFIX="~/"
|
||||
SPACESHIP_PYENV_SYMBOL=""
|
||||
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=#60C0FF,bold,underline"
|
||||
ZSH_AUTOSUGGEST_HISTORY_IGNORE="ls *,cd *"
|
||||
|
||||
# Completion (from Luke Smith)
|
||||
# Basic auto/tab complete:
|
||||
|
@ -39,20 +54,14 @@ _comp_options+=(globdots) # Include hidden files.
|
|||
if [[ -n $SSH_CONNECTION ]]; then
|
||||
export EDITOR='vim'
|
||||
else
|
||||
export EDITOR='mvim'
|
||||
export EDITOR='nvim'
|
||||
fi
|
||||
export BROWSER='firefox'
|
||||
export TERMINAL='urxvt'
|
||||
|
||||
#Askpass
|
||||
export SUDO_ASKPASS=/usr/bin/rofi-askpass
|
||||
|
||||
#vim
|
||||
export VIMINIT='let $MYVIMRC="$XDG_CONFIG_HOME/vim/vimrc" | source $MYVIMRC'
|
||||
|
||||
#binding/alias
|
||||
[ -f ~/.config/zsh/aliases ] && source ~/.config/zsh/aliases
|
||||
|
||||
# vi mode
|
||||
#bindkey -v
|
||||
#export KEYTIMEOUT=1
|
||||
|
@ -60,6 +69,14 @@ export VIMINIT='let $MYVIMRC="$XDG_CONFIG_HOME/vim/vimrc" | source $MYVIMRC'
|
|||
# Plugins
|
||||
plugins=(
|
||||
git
|
||||
zsh-syntax-highlighting
|
||||
fast-syntax-highlighting
|
||||
#zsh-syntax-highlighting
|
||||
zsh-autosuggestions
|
||||
)
|
||||
source $ZSH/oh-my-zsh.sh
|
||||
#source $ZSH_CUSTOM/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh 2>/dev/null
|
||||
#source $ZSH_CUSTOM/plugins/fsh/fast-syntax-highlighting.plugin.zsh
|
||||
#binding/alias
|
||||
[ -f ~/.config/zsh/aliases ] && source ~/.config/zsh/aliases
|
||||
[ -f ~/.config/zsh/keybinds ] && source ~/.config/zsh/keybinds
|
||||
source $HOME/.zprofile
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue