Last active
March 11, 2019 11:59
-
-
Save zaynkorai/7aae27317fe159a9d19d2b7dd9d8919b to your computer and use it in GitHub Desktop.
shell scripts
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
# If not running interactively, don't do anything | |
case $- in | |
*i*) ;; | |
*) return;; | |
esac | |
# Path to the bash it configuration | |
export BASH_IT="/home/korai/.bash_it" | |
# Lock and Load a custom theme file. | |
# Leave empty to disable theming. | |
# location /.bash_it/themes/ | |
export BASH_IT_THEME='bobby' | |
# (Advanced): Change this to the name of your remote repo if you | |
# cloned bash-it with a remote other than origin such as `bash-it`. | |
# export BASH_IT_REMOTE='bash-it' | |
# Your place for hosting Git repos. I use this for private repos. | |
export GIT_HOSTING='git@git.domain.com' | |
# Don't check mail when opening terminal. | |
unset MAILCHECK | |
# Change this to your console based IRC client of choice. | |
export IRC_CLIENT='irssi' | |
# Set this to the command you use for todo.txt-cli | |
export TODO="t" | |
# Set this to false to turn off version control status checking within the prompt for all themes | |
export SCM_CHECK=true | |
# Set Xterm/screen/Tmux title with only a short hostname. | |
# Uncomment this (or set SHORT_HOSTNAME to something else), | |
# Will otherwise fall back on $HOSTNAME. | |
#export SHORT_HOSTNAME=$(hostname -s) | |
# Set Xterm/screen/Tmux title with only a short username. | |
# Uncomment this (or set SHORT_USER to something else), | |
# Will otherwise fall back on $USER. | |
#export SHORT_USER=${USER:0:8} | |
# Set Xterm/screen/Tmux title with shortened command and directory. | |
# Uncomment this to set. | |
#export SHORT_TERM_LINE=true | |
# Set vcprompt executable path for scm advance info in prompt (demula theme) | |
# https://github.com/djl/vcprompt | |
#export VCPROMPT_EXECUTABLE=~/.vcprompt/bin/vcprompt | |
# (Advanced): Uncomment this to make Bash-it reload itself automatically | |
# after enabling or disabling aliases, plugins, and completions. | |
# export BASH_IT_AUTOMATIC_RELOAD_AFTER_CONFIG_CHANGE=1 | |
# Uncomment this to make Bash-it create alias reload. | |
# export BASH_IT_RELOAD_LEGACY=1 | |
# Load Bash It | |
source "$BASH_IT"/bash_it.sh | |
# If not running interactively, don't do anything | |
case $- in | |
*i*) ;; | |
*) return;; | |
esac | |
# Path to the bash it configuration | |
export BASH_IT="/home/korai/.bash_it" | |
# Lock and Load a custom theme file. | |
# Leave empty to disable theming. | |
# location /.bash_it/themes/ | |
export BASH_IT_THEME='bobby' | |
# (Advanced): Change this to the name of your remote repo if you | |
# cloned bash-it with a remote other than origin such as `bash-it`. | |
# export BASH_IT_REMOTE='bash-it' | |
# Your place for hosting Git repos. I use this for private repos. | |
export GIT_HOSTING='git@git.domain.com' | |
# Don't check mail when opening terminal. | |
unset MAILCHECK | |
# Change this to your console based IRC client of choice. | |
export IRC_CLIENT='irssi' | |
# Set this to the command you use for todo.txt-cli | |
export TODO="t" | |
# Set this to false to turn off version control status checking within the prompt for all themes | |
export SCM_CHECK=true | |
# Set Xterm/screen/Tmux title with only a short hostname. | |
# Uncomment this (or set SHORT_HOSTNAME to something else), | |
# Will otherwise fall back on $HOSTNAME. | |
#export SHORT_HOSTNAME=$(hostname -s) | |
# Set Xterm/screen/Tmux title with only a short username. | |
# Uncomment this (or set SHORT_USER to something else), | |
# Will otherwise fall back on $USER. | |
#export SHORT_USER=${USER:0:8} | |
# Set Xterm/screen/Tmux title with shortened command and directory. | |
# Uncomment this to set. | |
#export SHORT_TERM_LINE=true | |
# Set vcprompt executable path for scm advance info in prompt (demula theme) | |
# https://github.com/djl/vcprompt | |
#export VCPROMPT_EXECUTABLE=~/.vcprompt/bin/vcprompt | |
# (Advanced): Uncomment this to make Bash-it reload itself automatically | |
# after enabling or disabling aliases, plugins, and completions. | |
# export BASH_IT_AUTOMATIC_RELOAD_AFTER_CONFIG_CHANGE=1 | |
# Uncomment this to make Bash-it create alias reload. | |
# export BASH_IT_RELOAD_LEGACY=1 | |
# Load Bash It | |
source "$BASH_IT"/bash_it.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
## Sample initialization file for GNU nano | |
## Please note that you must have configured nano with --enable-nanorc | |
## for this file to be read! Also note that characters specially | |
## interpreted by the shell should not be escaped here. | |
## | |
## To make sure a value is not enabled, use "unset <option>" | |
## | |
## For the options that take parameters, the default value is given. | |
## Other options are unset by default. | |
## Use auto-indentation | |
set autoindent | |
## Backup files to filename~ | |
# set backup | |
## Constantly display the cursor position in the status bar. | |
# set const | |
## line numbers | |
set linenumbers | |
## Use cut to end of line with ^K by default | |
# set cut | |
## Set the line length for wrapping text and justifying paragraphs. | |
## If fill is negative, the line length will be the screen width less | |
## this number. | |
## | |
# set fill -8 | |
## Enable ~/.nano_history for saving and reading search/replace strings. | |
# set historylog | |
## Use alternate keypad routines | |
# set keypad | |
## Allow multiple file buffers (using ^R inserts into separate buffer). | |
## You must have configured with --enable-multibuffer or --enable-extra | |
## for this to work. | |
## | |
## set multibuffer | |
## Don't convert files from DOS/Mac format | |
# set noconvert | |
## Don't follow symlinks when writing files | |
# set nofollow | |
## Don't display the help lists at the bottom of the screen | |
# set nohelp | |
## Don't wrap text at all | |
# set nowrap | |
## Set operating directory. nano will not read or write files outside | |
## this directory and its subdirectories. Also, the current directory | |
## is changed to here, so files are inserted from this dir. A blank | |
## string means the operating directory feature is turned off. | |
## | |
# set operatingdir "" | |
## Preserve the XON and XOFF keys (^Q and ^S) | |
# set preserve | |
## The email-quote string, used to justify email-quoted paragraphs. | |
## This is an extended regular expression if your system supports them, | |
## otherwise a literal string. Default: | |
# set quotestr "^([ ]*[\|>:}#])+" | |
## if you have regexps, otherwise: | |
# set quotestr "> " | |
## You can get old nano quoted-justify behavior via: | |
# set quotestr "(> )+" | |
## Do extended regular expression searches by default | |
# set regexp | |
## Use smooth scrolling as the default | |
set smooth | |
## Use this spelling checker instead of the internal one. This option | |
## does not properly have a default value. | |
## | |
# set speller "aspell -c" | |
## Allow nano to be suspended with ^Z | |
# set suspend | |
## Use this tab size instead of the default; it must be greater than 0 | |
# set tabsize 8 | |
## Save automatically on exit, don't prompt | |
# set tempfile | |
## Disallow file modification, why would you want this in an rc file? ;) | |
# set view | |
## Color setup | |
## Format: | |
## syntax "short description" ["filename regex" ...] | |
## color foreground,background "regex" ["regex"...] | |
## | |
## Legal colors: white, black, red, blue, green, yellow, magenta, cyan. | |
## You may use the prefix "bright" to mean a stronger color highlight. | |
## | |
## To use multi-line regexes use the start="regex" end="regex" format. | |
## | |
## Nanorc files | |
include "/usr/share/nano/nanorc.nanorc" | |
## C/C++ | |
include "/usr/share/nano/c.nanorc" | |
## HTML | |
include "/usr/share/nano/html.nanorc" | |
## TeX | |
include "/usr/share/nano/tex.nanorc" | |
## Quoted emails (under e.g. mutt) | |
include "/usr/share/nano/mutt.nanorc" | |
## Patch files | |
include "/usr/share/nano/patch.nanorc" | |
## Manpages | |
include "/usr/share/nano/man.nanorc" | |
## Groff | |
include "/usr/share/nano/groff.nanorc" | |
## Perl | |
include "/usr/share/nano/perl.nanorc" | |
## Python | |
include "/usr/share/nano/python.nanorc" | |
## Ruby | |
include "/usr/share/nano/ruby.nanorc" | |
## Java | |
include "/usr/share/nano/java.nanorc" | |
## Java | |
include "/usr/share/nano/go.nanorc" | |
## Assembler | |
include "/usr/share/nano/asm.nanorc" | |
## Bourne shell scripts | |
include "/usr/share/nano/sh.nanorc" | |
## POV-Ray | |
include "/usr/share/nano/pov.nanorc" |
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
set clipboard=unnamed "Enable clipboard | |
filetype plugin indent on "Enable indent plugin | |
syntax enable "Enable syntax coloring | |
syntax on "Turn syntax coloring on | |
:color desert "Set desert syntax coloring | |
set nocompatible "Allow Vim-only settings even if they break vi keybindings. | |
:filetype on "Enable filetype detection | |
set incsearch "Find as you type | |
set ignorecase "Ignore case in search | |
set scrolloff=5 "Number of lines to keep above/below cursor | |
set smartcase "Only ignore case when all letters are lowercase | |
set number "Show line numbers | |
set wildmode=longest,list "Complete longest string, then list alternatives | |
set fileformats=unix "Use Unix line endings | |
set smartindent "Smart autoindenting on new line | |
set smarttab "Respect space/tab settings | |
set history=300 "Number of commands to remember | |
set backspace=2 "Use standard backspace behavior | |
set hlsearch "Highlight matches in search | |
set ruler "Show line and column number | |
set formatoptions=1 "Don't wrap text after a one-letter word | |
set linebreak "Break lines when appropriate | |
set autoindent "Auto indent based on previous line | |
"Prepare tab/space indent settings | |
set tabstop=4 "Set Tab width to 4 | |
set shiftwidth=4 "Indents will have width of 4 | |
set softtabstop=4 "Set the number of columns for tab | |
set expandtab "Expand tabs to spaces | |
colorscheme archery | |
set termguicolors | |
map <F2> :NERDTreeToggle<CR> | |
execute pathogen#infect() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment