commit 1b985bebac147dfe56107da3f599432a8ebe1002
Author: GeaRSiX <gearsix@tuta.io>
Date: Mon, 20 Apr 2020 17:50:32 +0100
added ls with colours to bashrc
renamed .bashrc -> bashrc
added nvimrc
added ssh_config
added tmux.conf
added user-dirs.dirs
Diffstat:
A | bashrc | | | 117 | +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
A | nvimrc | | | 82 | +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
A | ssh_config | | | 4 | ++++ |
A | tmux.conf | | | 2 | ++ |
A | user-dirs.dirs | | | 15 | +++++++++++++++ |
5 files changed, 220 insertions(+), 0 deletions(-)
diff --git a/bashrc b/bashrc
@@ -0,0 +1,117 @@
+#===============================#
+# GeaRSiX's bashrc
+# ~/.bashrc
+# 0 Variables
+# 1 Aliases
+# 1.A Misc
+# 1.B General
+# 1.D Programs
+# 1.E Config Files # DEPRECIATED - use github.com/gearsix/dotfm instead
+# 1.F Package Manager # DEPRECIATED - not using debian anymore
+# - stuff taken from default bashrc files
+#===============================#
+
+fuck-sysd.sh
+
+#export GTK_IM_MODULE=ibus
+#export XMODIFIERS=@im=ibus
+#`export QT_IM_MODULE=ibus
+
+#-------------#
+# 0 VARIABLES #
+#-------------#
+ txtReset=$'\e[0m'
+ txtBold=$'\e[1m'
+ colGreen=$'\e[0;32m'
+ colBlue=$'\e[0;34m'
+ colCyan=$'\e[0;36m'
+ export PS1='\[${txtBold}\]\A \[${txtReset}${colGreen}\]\u\[${txtReset}\]@\[${colBlue}\]\h\[${txtReset}\][\[${colCyan}\]\w\[${txtReset}\]]: '
+ export ark=~/shares/ark/
+
+#-----------#
+# 1 ALIASES #
+#-----------#
+#1.A MISC
+ alias myip='curl https://ipinfo.io/ip'
+ 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 mapscii='telnet mapscii.me'
+ alias parrot.live='curl parrot.live'
+ # bunch of cmds i used when multi-monitering with my laptop
+ #alias monitor-only='enable-monitor && disable-laptop'
+ #alias laptop-only='enable-laptop && disable-monitor'
+ #alias disable-monitor='xrandr --output eDP-1 --left-of DP-1 && xrandr --output DP-1 --off'
+ #alias disable-laptop='xrandr --output DP-1 --right-of eDP-1 && xrandr --output eDP-1 --off'
+ #alias enable-monitor='xrandr --output DP-1 --right-of eDP-1 --auto'
+ #alias enable-laptop='xrandr --output eDP-1 --left-of DP-1 --auto'
+
+#1.C PROGRAM ALIASES
+ alias qbit='qbittorrent'
+
+#1.D GENERAL
+ # alias logout='pkill -KILL -u $USER'
+ alias s!!='sudo !!'
+ alias ls='ls --color=auto'
+ alias ll='ls -lha --color=auto' # list format, human-readable
+ alias lla='ls -lAh --color=auto' # show almost all, human-readable
+ alias lsa='ls -Ah --color=auto' # list format, all, human-readable
+ alias llt='ls -lAht --color=auto' # list format, show almost all, human-readable, sort by modification time (newest first)
+ alias lls='ls -lAhS --color=auto' # list format, show almost all, human-readable, sort by file size (largest first)
+ alias llu='ls -lAhu --color=auto' # list format, show almost all, human-readable, sort by user
+ alias rm='rm -vri' # verbose, recursive, interactive
+ alias cp='cp -vri' # verbose, recursive, interactive
+ alias mv='mv -vi' # verbose, interactive
+ alias mkd='mkdir -p' # make parent directories
+ alias grep='grep --color=auto'
+ alias ..='cd ../'
+ alias snvim='sudo nvim'
+
+#1.E CONFIG FILES
+# i just use "dotfm edit" now (see github.com/gearsix/dotfm)
+ #alias .bashrc='nvim ~/.bashrc && source ~/.bashrc'
+ #alias .nvimrc='nvim ~/.config/nvim/init.vim'
+
+#1.F PACKAGE MANAGER ALIASES
+# save typing on an old debian machine
+ #alias ainstall='sudo apt install'
+ #alias aremove='sudo apt remove'
+ #alias apurge='sudo apt purge'
+ #alias asearch='apt search'
+ #alias asearch-no='apt search --names-only'
+ #alias aupdate='sudo apt update'
+ #alias aupgrade='sudo apt upgrade'
+ #alias auu='sudo apt update && sudo apt upgrade'
+ #alias aar='sudo apt autoremove'
+
+#-----------------------------------------#
+# - STUFF TAKEN FROM DEFAULT BASHRC FILES #
+#-----------------------------------------#
+# below is taken from debian /usr/share/doc/bash/examples/startup-files
+ # don't put duplicate lines or lines starting with space in the history.
+ HISTCONTROL=ignoreboth
+
+ # append to the history file, don't overwrite it
+ shopt -s histappend
+
+ # 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
+
+ # colored GCC warnings and errors
+ export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
+
+ # add an "alert" alias for long running commands
+ # e.g.$ 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$//'\'')"'
+
+ # enable programmable completion features
+ # 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
+
diff --git a/nvimrc b/nvimrc
@@ -0,0 +1,82 @@
+"========================
+" Alex Collins
+" ~/.config/nvim/init.vim
+" 0. VIM-PLUG
+" 0-1. VIM-PLUG SHORTCUTS
+" 1. GENERAL
+" 2. COLOURS
+" 3. SPACES & TABS
+" 4. UI
+" 5. SEARCH
+" 6. FOLDING
+" 7. SHORTCUTS
+"========================
+
+"0. VIM-PLUG
+ call plug#begin('~/.local/share/nvim/plugged')
+" Plug 'airodactyl/neovim-ranger' "use ranger for file explorer
+ Plug 'vim-utils/vim-man'
+ Plug 'w0rp/ale'
+ Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' }
+ call plug#end()
+
+"0-1. VIM-PLUG SETTINGS
+ let g:ale_linters = {'javascript': ['standard']}
+ let g:ale_fixers = {'javascript': ['standard']}
+
+"1. GENERAL
+ set history=500 "how many lines of history to remember
+ set autoread "read a file if it's changed from the outside
+ set ffs=unix,dos,mac "filetype priority
+
+"2. COLOURS
+ syntax enable
+ set background=dark
+
+"3. SPACES & TABS
+ set tabstop=4 "number of visual spaces per tab
+ set softtabstop=4 "number of spaces in a tab when editing
+ set shiftwidth=4 "number of spaces when shifting a visual block
+ set hid "hide ignored buffers
+ "set expandtab "tabs to spaces
+
+"4. UI
+ set number "show numbers on in the margin
+ set showcmd "show cmdline in the bottom bar
+ set cmdheight=2 "height of cmdline
+ set cursorline "highlight current line
+ set wildmenu "visual autocomplete for cmd menu
+ set showmatch "highlight matching [{()}]
+ set nowrap "turn off line wrapping
+ set laststatus=2 "always show the last status line
+ "set statusline=\ %F%m%r%h\ %w\ \ \ \ \ \ \ \ \ \ \ \ Line:\ %l
+ set scrolloff=1 "always show at least one line above/below the cursor
+
+"5. SEARCH
+ set incsearch "search as characters are entered
+ set hlsearch "highlight matches
+
+"6. FOLDING
+ set foldmethod=indent "fold based on syntax
+ set foldenable "enable folding
+ set foldnestmax=6 "avoids massively nested folds
+
+"7. TEXT WRAPPING
+ set wrap "enable text wrapping
+ set linebreak "only insert linebreaks when Enter key is pressed
+
+"8. SHORTCUTS
+ ", = leader
+ let mapleader=","
+ ",<space> = turn off search highlights
+ nnoremap <leader><space> :nohlsearch<CR>
+ ":W = sudo save
+ command W w !sudo tee % > /dev/null
+ "<Esc> to exit terminal mode
+ :tnoremap <Esc> <C-\><C-n>
+ "vertical res
+ cnoreabbrev vres vertical res
+
+"8. PLUGINS
+set rtp+=/home/alex/go/src/golang.org/x/lint/misc/vim
+
diff --git a/ssh_config b/ssh_config
@@ -0,0 +1,4 @@
+Host ark
+ User gearsix
+ HostName 192.168.0.14
+ Port 3001
diff --git a/tmux.conf b/tmux.conf
@@ -0,0 +1,2 @@
+# remove delay for escape keypress
+set -sg escape-time 0
diff --git a/user-dirs.dirs b/user-dirs.dirs
@@ -0,0 +1,15 @@
+# This file is written by xdg-user-dirs-update
+# If you want to change or add directories, just edit the line you're
+# interested in. All local changes will be retained on the next run.
+# Format is XDG_xxx_DIR="$HOME/yyy", where yyy is a shell-escaped
+# homedir-relative path, or XDG_xxx_DIR="/yyy", where /yyy is an
+# absolute path. No other format is supported.
+#
+XDG_DESKTOP_DIR="$HOME/.desktop"
+XDG_DOWNLOAD_DIR="$HOME/dwn"
+XDG_TEMPLATES_DIR="$HOME/tmp"
+XDG_PUBLICSHARE_DIR="$HOME/share"
+XDG_DOCUMENTS_DIR="$HOME/docs"
+XDG_MUSIC_DIR="$HOME/music"
+XDG_PICTURES_DIR="$HOME/pics"
+XDG_VIDEOS_DIR="$HOME/vids"