Browse Source

Update config

Signed-off-by: Ein Verne <[email protected]>
pull/4/head
Ein Verne 7 years ago
parent
commit
62869f6105
  1. 7
      .zshrc
  2. 29
      install_android_decompiler.sh
  3. 33
      tmux/.tmux.conf

7
.zshrc

@ -14,10 +14,17 @@ export PATH="$PATH:$HOME/phabricator/arcanist/bin/"
export TERM="screen-256color" export TERM="screen-256color"
# pyenv
export PATH="$HOME/.pyenv/bin:$PATH" export PATH="$HOME/.pyenv/bin:$PATH"
eval "$(pyenv init -)" eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)" eval "$(pyenv virtualenv-init -)"
# rbenv
export GPG_TTY=$(tty)
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"
export PATH="$HOME/.rbenv/plugins/ruby-build/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

29
install_android_decompiler.sh

@ -0,0 +1,29 @@
#!/bin/bash -
#===============================================================================
#
# FILE: install_android_decompiler.sh
#
# USAGE: ./install_android_decompiler.sh
#
# DESCRIPTION:
#
# OPTIONS: ---
# REQUIREMENTS: ---
# BUGS: ---
# NOTES: ---
# AUTHOR: YOUR NAME (),
# ORGANIZATION:
# CREATED: 2018年01月31日 15时30分39秒
# REVISION: ---
#===============================================================================
set -o nounset # Treat unset variables as an error
wget https://raw.githubusercontent.com/iBotPeaches/Apktool/master/scripts/linux/apktool
mv apktool /usr/local/bin/apktool
chmod +x /usr/local/bin/apktool
wget https://bitbucket.org/iBotPeaches/apktool/downloads/apktool_2.3.1.jar
mv apktool_2.3.1.jar /usr/local/bin/apktool.jar
chmox +x /usr/local/bin/apktool.jar

33
tmux/.tmux.conf

@ -5,9 +5,9 @@ set -s escape-time 10 # faster command sequences
set -sg repeat-time 600 # increase repeat timeout set -sg repeat-time 600 # increase repeat timeout
set -s focus-events on set -s focus-events on
unbind ^b # unbind defaul prefix Control+b #unbind ^b # unbind defaul prefix Control+b
set -g prefix 'C-\' # bind new prefix Control+a #set -g prefix 'C-\' # bind new prefix Control+a
bind-key 'C-\' send-prefix #bind-key 'C-\' send-prefix
bind r source-file ~/.tmux.conf \; display-message "tmux config reloaded" # create new short cut to reload tmux.conf bind r source-file ~/.tmux.conf \; display-message "tmux config reloaded" # create new short cut to reload tmux.conf
@ -19,8 +19,9 @@ set -g history-limit 5000 # boost history
# ---- display ------------------------------------------------------------------------ # ---- display ------------------------------------------------------------------------
# Enable mouse mode (tmux 2.1 and above) # Enable mouse mode (tmux 2.1 and above)
set -g mouse on set -g mouse on
setw -g mode-mouse on # setw -g mode-mouse on
# 窗口号和窗口分割号都以1开始(默认从0开始)
set -g base-index 1 # start windows numbering at 1 set -g base-index 1 # start windows numbering at 1
setw -g pane-base-index 1 # make pane numbering consistent with windows setw -g pane-base-index 1 # make pane numbering consistent with windows
@ -28,10 +29,16 @@ setw -g automatic-rename on # rename window to reflect current program
set -g renumber-windows on # renumber windows when a window is closed set -g renumber-windows on # renumber windows when a window is closed
# activity # 监视窗口信息,如有内容变动,进行提示
set -g monitor-activity on set -g monitor-activity on
set -g visual-activity off set -g visual-activity off
# 调节窗口大小快捷键
bind -r H resize-pane -L 5
bind -r J resize-pane -D 5
bind -r K resize-pane -U 5
bind -r L resize-pane -R 5
# move between panels using hjkl like in vim up # move between panels using hjkl like in vim up
@ -57,8 +64,8 @@ bind - split-window -v -c "#{pane_current_path}"
unbind '"' unbind '"'
unbind % unbind %
bind-key -Tcopy-mode-vi 'v' send -X begin-selection bind-key -t vi-copy 'v' begin-selection
bind-key -Tcopy-mode-vi 'y' send -X copy-selection bind-key -t vi-copy 'y' copy-selection
# Smart pane switching with awareness of Vim splits. # Smart pane switching with awareness of Vim splits.
# See: https://github.com/christoomey/vim-tmux-navigator # See: https://github.com/christoomey/vim-tmux-navigator
@ -87,9 +94,6 @@ set -g status-interval 10 # redraw status line every 10 seconds
set-option -g status-justify centre set-option -g status-justify centre
# fiddle with colors of inactive windows # fiddle with colors of inactive windows
setw -g window-status-fg cyan
setw -g window-status-bg colour234
setw -g window-status-attr dim
# change color of active window # change color of active window
# setw -g window-status-current-fg white # setw -g window-status-current-fg white
@ -110,6 +114,15 @@ set -g message-attr bright
set -g status-right '#[fg=colour233,bg=colour241,bold] %d/%m #[fg=colour233,bg=colour245,bold] %H:%M:%S ' set -g status-right '#[fg=colour233,bg=colour241,bold] %d/%m #[fg=colour233,bg=colour245,bold] %H:%M:%S '
set -g status-right-length 50 set -g status-right-length 50
# 设置当前窗口格式及颜色
setw -g window-status-current-format "#[bg=brightmagenta]#[fg=colour8] #I #[fg=colour8]#[bg=colour14] #W "
setw -g window-status-current-bg colour0
setw -g window-status-current-fg colour11
setw -g window-status-current-attr dim
setw -g window-status-fg cyan
setw -g window-status-bg colour234
setw -g window-status-attr dim
# automatic install tpm # automatic install tpm
if "test ! -d ~/.tmux/plugins/tpm" \ if "test ! -d ~/.tmux/plugins/tpm" \

Loading…
Cancel
Save