Last active
May 26, 2019 04:50
-
-
Save vlakarados/e2dc37ee3f75a739922f13af809becde to your computer and use it in GitHub Desktop.
Command line / bash
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
export LC_ALL=en_US.UTF-8 | |
export LANG=en_US.UTF-8 | |
export EDITOR=vim | |
export GIT_EDITOR=vim | |
export CLICOLOR=1 | |
export LSCOLORS=cxFxGxDxBxegedabagaced | |
shopt -s histappend # append to the history file, don't overwrite it | |
HISTCONTROL=ignoreboth # don't put duplicate lines or lines starting with space in the history. | |
HISTSIZE=1000 | |
HISTFILESIZE=2000 | |
shopt -s checkwinsize # update the values of LINES and COLUMNS if window size changed after each command | |
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)" # make less more friendly for non-text input files | |
# Don't check mail when opening terminal. | |
unset MAILCHECK | |
if [ -f /etc/bash_completion ] && ! shopt -oq posix; then | |
. /etc/bash_completion | |
fi | |
# 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' | |
alias grep='grep --color=auto' | |
alias fgrep='fgrep --color=auto' | |
alias egrep='egrep --color=auto' | |
fi | |
alias ..="cd .." | |
alias -- -="cd -" | |
alias ll="ls -lAh" | |
alias l="ll" | |
alias lless="ll --color=always | less -R" # colored less | |
alias g="grep" | |
alias python='python3' | |
powerline-daemon -q | |
POWERLINE_BASH_CONTINUATION=1 | |
POWERLINE_BASH_SELECT=1 | |
source /usr/local/lib/python3.7/site-packages/powerline/bindings/bash/powerline.sh |
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
unbind C-b | |
set-option -g prefix C-a | |
bind-key C-a send-prefix | |
set -g default-terminal "screen-256color" | |
set -g history-limit 5000 | |
# panes | |
set -g base-index 1 | |
set -g pane-base-index 1 | |
bind -n C-x setw synchronize-panes | |
# Pane borders: | |
set -g pane-border-fg "#202020" | |
set -g pane-active-border-fg "#585063" | |
# Status bar | |
set -g message-command-bg "#101010" | |
set -g message-command-fg "#ffff00" | |
set -g status-interval 1 | |
set -g status-justify centre | |
set -g status-bg "#151515" | |
set -g status-fg white | |
set-window-option -g window-status-current-bg white | |
set-window-option -g window-status-current-fg black | |
# Chars: ▶ ◀ | |
# Status Left | |
set -g status-left '#[fg=#808080] ' | |
# window status | |
setw -g window-status-format "#[bg=#265680]#[fg=#000001] #I #[fg=#202020]#[bg=#808080] #W " | |
setw -g window-status-current-format "#[bg=#265680]#[fg=#000000] #I #[fg=#265680]#[bg=#202020] #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-bg green | |
setw -g window-status-fg black | |
setw -g window-status-attr reverse | |
setw -g automatic-rename | |
bind : command-prompt |
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
syntax on | |
set nu | |
set tabstop=4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment