initial commit
This commit is contained in:
48
rc/bashrc
Normal file
48
rc/bashrc
Normal file
@ -0,0 +1,48 @@
|
||||
|
||||
#
|
||||
# ~/.bashrc
|
||||
#
|
||||
|
||||
# If not running interactively, don't do anything
|
||||
[[ $- != *i* ]] && return
|
||||
|
||||
|
||||
#set dircolor to solarized-dark
|
||||
#eval `dircolors ~/.dotfiles/gnome-terminal/dircolors-solarized/dircolors.ansi-dark`
|
||||
|
||||
#export PATH=~/bin:$PATH
|
||||
|
||||
export EDITOR="nvim"
|
||||
|
||||
#
|
||||
# load aliases
|
||||
#
|
||||
|
||||
source ~/.config/aliases
|
||||
|
||||
# add ruby to path
|
||||
#PATH="$(ruby -e 'print Gem.user_dir')/bin:$PATH"
|
||||
|
||||
#
|
||||
# Prompt
|
||||
#
|
||||
|
||||
exitstatus()
|
||||
{
|
||||
if [[ $? == 0 ]]; then
|
||||
echo ''
|
||||
else
|
||||
echo '! '
|
||||
fi
|
||||
}
|
||||
|
||||
user()
|
||||
{
|
||||
if [[ $USER == 'roman' ]]; then
|
||||
echo ''
|
||||
else
|
||||
echo '\u@\h '
|
||||
fi
|
||||
}
|
||||
|
||||
PS1='[$(exitstatus)$(user)\w]\$ '
|
117
rc/tmux/tmux.conf
Normal file
117
rc/tmux/tmux.conf
Normal file
@ -0,0 +1,117 @@
|
||||
|
||||
# tmux display things in 256 colors
|
||||
set -g default-terminal "screen-256color"
|
||||
|
||||
# set new history limit
|
||||
set -g history-limit 30000
|
||||
|
||||
# screesaver after 600 sek
|
||||
set -g lock-after-time 600
|
||||
set -g lock-command "/usr/bin/cmatrix -C blue -s"
|
||||
|
||||
# automatically renumber tmux windows
|
||||
set -g renumber-windows on
|
||||
|
||||
# set new prefix key
|
||||
unbind C-b
|
||||
set -g prefix C-a
|
||||
bind C-a send-prefix
|
||||
|
||||
# Activity Monitoring
|
||||
setw -g monitor-activity off
|
||||
set -g visual-activity off
|
||||
|
||||
# Rather than constraining window size to the maximum size of any client
|
||||
# connected to the *session*, constrain window size to the maximum size of any
|
||||
# client connected to *that window*. Much more reasonable.
|
||||
#setw -g aggressive-resize on
|
||||
|
||||
# make delay shorter
|
||||
set -sg escape-time 0
|
||||
|
||||
# tile all windows
|
||||
#unbind =
|
||||
#bind = select-layout tiled
|
||||
|
||||
# make window/pane index start with 1
|
||||
set -g base-index 1
|
||||
setw -g pane-base-index 1
|
||||
|
||||
new-session -A -s main
|
||||
|
||||
set-option -g set-titles on
|
||||
set-option -g set-titles-string "#T - #W"
|
||||
set-window-option -g automatic-rename on
|
||||
|
||||
# set config reload key
|
||||
bind-key r source-file ~/.tmux.conf \; display "Config reloaded!"
|
||||
|
||||
# enable mouse scrolling
|
||||
set -g mouse on
|
||||
bind -T root WheelUpPane if-shell -F -t = "#{alternate_on}" "send-keys -M" "select-pane -t =; copy-mode -e; send-keys -M"
|
||||
bind -T root WheelDownPane if-shell -F -t = "#{alternate_on}" "send-keys -M" "select-pane -t =; send-keys -M"
|
||||
|
||||
|
||||
######################
|
||||
#### Key Bindings ####
|
||||
######################
|
||||
|
||||
# quickly open a new window
|
||||
bind N new-window
|
||||
|
||||
# split window and fix path for tmux 1.9
|
||||
bind | split-window -h -c "#{pane_current_path}"
|
||||
bind - split-window -v -c "#{pane_current_path}"
|
||||
bind c new-window -c "#{pane_current_path}"
|
||||
|
||||
# pane movement shortcuts
|
||||
bind h select-pane -L
|
||||
bind j select-pane -D
|
||||
bind k select-pane -U
|
||||
bind l select-pane -R
|
||||
|
||||
# Resize pane shortcuts
|
||||
bind -r H resize-pane -L 10
|
||||
bind -r J resize-pane -D 10
|
||||
bind -r K resize-pane -U 10
|
||||
bind -r L resize-pane -R 10
|
||||
|
||||
# maximizing and restoring windows
|
||||
unbind Up
|
||||
bind Up new-window -d -n fullscreen \; swap-pane -s fullscreen.1 \; select-window -t fullscreen
|
||||
unbind Down
|
||||
bind Down last-window \; swap-pane -s fullscreen.1 \; kill-window -t fullscreen
|
||||
|
||||
# set vi mode for copy mode
|
||||
setw -g mode-keys vi
|
||||
# more settings to make copy-mode more vim-like
|
||||
unbind [
|
||||
bind Escape copy-mode
|
||||
unbind p
|
||||
bind p paste-buffer
|
||||
bind -t vi-copy 'v' begin-selection
|
||||
bind -t vi-copy 'y' copy-selection
|
||||
|
||||
##############################
|
||||
### Color & Style Settings ###
|
||||
##############################
|
||||
|
||||
source ~/.tmux/theme.sh
|
||||
|
||||
|
||||
##############################
|
||||
### Plugins ###
|
||||
##############################
|
||||
|
||||
# List of plugins
|
||||
set -g @plugin 'tmux-plugins/tpm'
|
||||
|
||||
set -g @plugin 'tmux-plugins/tmux-sidebar'
|
||||
set -g @plugin 'tmux-plugins/tmux-resurrect'
|
||||
set -g @plugin 'tmux-plugins/tmux-prefix-highlight'
|
||||
set -g @plugin 'tmux-plugins/tmux-yank'
|
||||
set -g @plugin 'tmux-plugins/tmux-open'
|
||||
|
||||
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
|
||||
run '~/.tmux/plugins/tpm/tpm'
|
||||
|
33
rc/zshrc
Normal file
33
rc/zshrc
Normal file
@ -0,0 +1,33 @@
|
||||
export ZSH=/home/roman/.oh-my-zsh
|
||||
|
||||
DEFAULT_USER="roman"
|
||||
ZSH_THEME="agnoster"
|
||||
COMPLETION_WAITING_DOTS="true"
|
||||
ZSH_TMUX_AUTOSTART="true"
|
||||
ZSH_TMUX_AUTOQUIT="true"
|
||||
|
||||
plugins=(tmux jump)
|
||||
CASE_SENSITIVE="true"
|
||||
|
||||
#set dircolor to solarized-dark
|
||||
eval `dircolors ~/.dotfiles/gnome-terminal/dircolors-solarized/dircolors.ansi-dark`
|
||||
|
||||
#export PATH=~/bin:$PATH
|
||||
|
||||
source $ZSH/oh-my-zsh.sh
|
||||
|
||||
export EDITOR="nvim"
|
||||
|
||||
# load aliases
|
||||
source ~/.config/aliases
|
||||
|
||||
|
||||
#BASE16_SHELL="$HOME/.config/base16-shell/base16-brewer.dark.sh"
|
||||
#[[ -s $BASE16_SHELL ]] && source $BASE16_SHELL
|
||||
|
||||
#export NVM_DIR="/home/booker/.nvm"
|
||||
#[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
|
||||
|
||||
# add ruby to path
|
||||
PATH="$(ruby -e 'print Gem.user_dir')/bin:$PATH"
|
||||
|
Reference in New Issue
Block a user