-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 8696c69
Showing
3 changed files
with
331 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
# ~/.bashrc: executed by bash(1) for non-login shells. | ||
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | ||
# for examples | ||
|
||
# If not running interactively, don't do anything | ||
case $- in | ||
*i*) ;; | ||
*) return;; | ||
esac | ||
|
||
# don't put duplicate lines or lines starting with space in the history. | ||
# See bash(1) for more options | ||
HISTCONTROL=ignoreboth | ||
|
||
# append to the history file, don't overwrite it | ||
shopt -s histappend | ||
|
||
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1) | ||
HISTSIZE=1000 | ||
HISTFILESIZE=2000 | ||
|
||
# check the window size after each command and, if necessary, | ||
# update the values of LINES and COLUMNS. | ||
shopt -s checkwinsize | ||
|
||
# If set, the pattern "**" used in a pathname expansion context will | ||
# match all files and zero or more directories and subdirectories. | ||
#shopt -s globstar | ||
|
||
# make less more friendly for non-text input files, see lesspipe(1) | ||
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)" | ||
|
||
# set variable identifying the chroot you work in (used in the prompt below) | ||
if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then | ||
debian_chroot=$(cat /etc/debian_chroot) | ||
fi | ||
|
||
# set a fancy prompt (non-color, unless we know we "want" color) | ||
case "$TERM" in | ||
xterm-color|*-256color) color_prompt=yes;; | ||
esac | ||
|
||
# uncomment for a colored prompt, if the terminal has the capability; turned | ||
# off by default to not distract the user: the focus in a terminal window | ||
# should be on the output of commands, not on the prompt | ||
#force_color_prompt=yes | ||
|
||
if [ -n "$force_color_prompt" ]; then | ||
if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then | ||
# We have color support; assume it's compliant with Ecma-48 | ||
# (ISO/IEC-6429). (Lack of such support is extremely rare, and such | ||
# a case would tend to support setf rather than setaf.) | ||
color_prompt=yes | ||
else | ||
color_prompt= | ||
fi | ||
fi | ||
|
||
if [ "$color_prompt" = yes ]; then | ||
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' | ||
else | ||
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ' | ||
fi | ||
unset color_prompt force_color_prompt | ||
|
||
# If this is an xterm set the title to user@host:dir | ||
case "$TERM" in | ||
xterm*|rxvt*) | ||
PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1" | ||
;; | ||
*) | ||
;; | ||
esac | ||
|
||
# enable color support of ls and also add handy aliases | ||
if [ -x /usr/bin/dircolors ]; then | ||
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" | ||
alias ls='ls --color=auto -lhc --group-directories-first' | ||
#alias dir='dir --color=auto' | ||
#alias vdir='vdir --color=auto' | ||
|
||
alias grep='grep --color=auto' | ||
alias fgrep='fgrep --color=auto' | ||
alias egrep='egrep --color=auto' | ||
fi | ||
|
||
# colored GCC warnings and errors | ||
#export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01' | ||
|
||
# some more ls aliases | ||
alias ll='ls -alF' | ||
alias la='ls -A' | ||
alias l='ls -CF' | ||
alias cd..='cd ..' | ||
alias cat='batcat' | ||
alias tmux ls='tmux list-sessions' | ||
|
||
# Add an "alert" alias for long running commands. Use like so: | ||
# sleep 10; alert | ||
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"' | ||
|
||
# Alias definitions. | ||
# You may want to put all your additions into a separate file like | ||
# ~/.bash_aliases, instead of adding them here directly. | ||
# See /usr/share/doc/bash-doc/examples in the bash-doc package. | ||
|
||
if [ -f ~/.bash_aliases ]; then | ||
. ~/.bash_aliases | ||
fi | ||
|
||
# enable programmable completion features (you don't need to enable | ||
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile | ||
# sources /etc/bash.bashrc). | ||
if ! shopt -oq posix; then | ||
if [ -f /usr/share/bash-completion/bash_completion ]; then | ||
. /usr/share/bash-completion/bash_completion | ||
elif [ -f /etc/bash_completion ]; then | ||
. /etc/bash_completion | ||
fi | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
# Initial setup | ||
set -g default-terminal xterm-256color | ||
set -g status-keys vi | ||
|
||
# use C-j and C-f for the prefix. | ||
set-option -g prefix C-j | ||
set-option -g prefix2 C-f | ||
unbind-key C-j | ||
bind-key C-j send-prefix | ||
set -g base-index 1 | ||
|
||
# Use Alt-arrow keys without prefix key to switch panes | ||
bind -n M-Left select-pane -L | ||
bind -n M-Right select-pane -R | ||
bind -n M-Up select-pane -U | ||
bind -n M-Down select-pane -D | ||
|
||
# Set easier window split keys | ||
bind-key v split-window -h | ||
bind-key h split-window -v | ||
|
||
# Change the key to create a window | ||
bind-key n new-window | ||
|
||
# Shift arrow to switch windows | ||
bind -n S-Left previous-window | ||
bind -n S-Right next-window | ||
|
||
# Easily reorder windows with CTRL+SHIFT+Arrow | ||
bind-key -n C-S-Left swap-window -t -1 | ||
bind-key -n C-S-Right swap-window -t +1 | ||
|
||
# Synchronize panes | ||
bind-key y set-window-option synchronize-panes\; display-message "synchronize mode toggled." | ||
|
||
# Easy config reload | ||
bind-key r source-file ~/.tmux.conf \; display-message "tmux.conf reloaded." | ||
|
||
# Easy clear history | ||
bind-key L clear-history | ||
|
||
# Key bindings for copy-paste | ||
setw -g mode-keys vi | ||
unbind p | ||
bind p paste-buffer | ||
bind-key -T copy-mode-vi 'v' send -X begin-selection | ||
bind-key -T copy-mode-vi 'y' send -X copy-selection-and-cancel | ||
|
||
# Mouse Mode | ||
set -g mouse on | ||
|
||
# Lengthen the amount of time status messages are displayed | ||
set-option -g display-time 2000 | ||
set-option -g display-panes-time 2000 | ||
|
||
# Set the base-index to 1 rather than 0 | ||
set -g base-index 1 | ||
set-window-option -g pane-base-index 1 | ||
|
||
# Automatically set window title | ||
set-window-option -g automatic-rename on | ||
set-option -g set-titles on | ||
|
||
# Allow the arrow key to be used immediately after changing windows. | ||
set-option -g repeat-time 0 | ||
|
||
# No delay for escape key press | ||
set -sg escape-time 0 | ||
|
||
# Theme | ||
set-window-option -g window-status-current-style bold,bg=blue,fg=colour35 | ||
set-window-option -g window-status-style fg=colour35 | ||
set -g window-status-activity-style bold,bg=colour234,fg=white | ||
set-option -g message-style bg=colour237,fg=colour231 | ||
set-option -g pane-border-style fg=colour36 | ||
set-option -g pane-active-border-style fg=colour35 | ||
|
||
# Change background color of a tab when activity occurs | ||
setw -g monitor-activity on | ||
|
||
# Do NOT reset the color of the tab after activity stops occuring | ||
setw -g monitor-silence 0 | ||
|
||
# Disable bell | ||
setw -g monitor-bell off | ||
|
||
# Disable visual text box when activity occurs | ||
set -g visual-activity off | ||
|
||
# Status Bar | ||
set -g status-justify centre | ||
set -g status-bg black | ||
set -g status-fg colour35 | ||
set -g status-interval 60 | ||
set -g status-left-length 50 | ||
set -g status-left "#[bg=colour35]💻#[fg=colour234,bold] #H#[bg=colour34]#[bg=colour35,nobold]#[fg=colour234] [#S] $tmux_target_lower" | ||
set -g status-right '#[bg=colour35] 🕔 #[fg=colour234,bold]%H:%M ' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
" Colorscheme | ||
colorscheme ron | ||
|
||
" Disable compatibility with vi which can cause unexpected issues. | ||
set nocompatible | ||
|
||
" Enable type file detection. Vim will be able to try to detect the type of file in use. | ||
filetype on | ||
|
||
" Enable plugins and load plugin for the detected file type. | ||
filetype plugin on | ||
|
||
" Load an indent file for the detected file type. | ||
filetype indent on | ||
|
||
" Turn syntax highlighting on. | ||
syntax on | ||
|
||
" Add numbers to each line on the left-hand side. | ||
set number | ||
|
||
" Highlight cursor line underneath the cursor horizontally. | ||
" set cursorline | ||
|
||
" Highlight cursor line underneath the cursor vertically. | ||
" set cursorcolumn | ||
|
||
" Set shift width to 4 spaces. | ||
" set shiftwidth=4 | ||
|
||
" Set tab width to 4 columns. | ||
" set tabstop=4 | ||
|
||
" Use space characters instead of tabs. | ||
" set expandtab | ||
|
||
" Do not save backup files. | ||
" set nobackup | ||
|
||
" Do not let cursor scroll below or above N number of lines when scrolling. | ||
" set scrolloff=10 | ||
|
||
" Do not wrap lines. Allow long lines to extend as far as the line goes. | ||
" set nowrap | ||
|
||
" While searching though a file incrementally highlight matching characters as you type. | ||
set incsearch | ||
|
||
" Ignore capital letters during search. | ||
set ignorecase | ||
|
||
" Override the ignorecase option if searching for capital letters. | ||
" This will allow you to search specifically for capital letters. | ||
set smartcase | ||
|
||
" Show partial command you type in the last line of the screen. | ||
set showcmd | ||
|
||
" Show the mode you are on the last line. | ||
set showmode | ||
|
||
" Show matching words during a search. | ||
set showmatch | ||
|
||
" Use highlighting when doing a search. | ||
set hlsearch | ||
|
||
" Set the commands to save in history default number is 20. | ||
set history=100 | ||
|
||
" Enable auto completion menu after pressing TAB. | ||
set wildmenu | ||
|
||
" Make wildmenu behave like similar to Bash completion. | ||
set wildmode=list:longest | ||
|
||
" There are certain files that we would never want to edit with Vim. | ||
" Wildmenu will ignore files with these extensions. | ||
" set wildignore=*.docx,*.jpg,*.png,*.gif,*.pdf,*.pyc,*.exe,*.flv,*.img,*.xlsx | ||
|
||
|
||
" PLUGINS ---------------------------------------------------------------- {{{ | ||
|
||
" Plugin code goes here. | ||
|
||
" }}} | ||
|
||
|
||
" MAPPINGS --------------------------------------------------------------- {{{ | ||
|
||
" Mappings code goes here. | ||
|
||
" }}} | ||
|
||
|
||
" VIMSCRIPT -------------------------------------------------------------- {{{ | ||
|
||
" This will enable code folding. | ||
" Use the marker method of folding. | ||
augroup filetype_vim | ||
autocmd! | ||
autocmd FileType vim setlocal foldmethod=marker | ||
augroup END | ||
|
||
" More Vimscripts code goes here. | ||
|
||
" }}} | ||
|
||
|
||
" STATUS LINE ------------------------------------------------------------ {{{ | ||
|
||
" Status bar code goes here. | ||
|
||
" }}} |