From 451a8f18eb4e6a2e31501f0f3379f7e4da455939 Mon Sep 17 00:00:00 2001 From: Brad Date: Mon, 7 Jan 2019 14:25:22 -0600 Subject: [PATCH] oopsie B| --- Arch/.bashrc | 55 +++++++++++++++++++++++++++++++++++++++- Arch/.tmux.conf | 67 ++++++++++++++++++++++++++++++++++++++++++++++++- Arch/.vimrc | 35 +++++++++++++++++++++++++- 3 files changed, 154 insertions(+), 3 deletions(-) mode change 120000 => 100644 Arch/.bashrc mode change 120000 => 100644 Arch/.tmux.conf mode change 120000 => 100644 Arch/.vimrc diff --git a/Arch/.bashrc b/Arch/.bashrc deleted file mode 120000 index c149027..0000000 --- a/Arch/.bashrc +++ /dev/null @@ -1 +0,0 @@ -/home/brad/.bashrc \ No newline at end of file diff --git a/Arch/.bashrc b/Arch/.bashrc new file mode 100644 index 0000000..791f8c8 --- /dev/null +++ b/Arch/.bashrc @@ -0,0 +1,54 @@ +# +# ~/.bashrc +# + +# If not running interactively, don't do anything +[[ $- != *i* ]] && return + +alias ls='ls --color=auto' +PS1='[\u@\h \W]\$ ' + +eval $(thefuck --alias) +alias trans='rsync -Pve ssh' +alias update='yay -Syu --noconfirm' +alias inst='yay --noconfirm -S' +alias burn='yay -Rns' +alias ls='ls --color=auto' +alias pacs='yay -Ss' +alias svim='sudo -E vim' +alias supd='sudo pacman -Syyuu' +alias ncdu='ncdu --color dark' +alias bigclock='watch -t -n 1 "date '+%D%n%I:%M:%S' | figlet -k"|lolcat' +alias gitview='git log --graph --full-history --all --color --pretty=tformat:"%x1b[31m%h%x09%x1b[32m%d%x1b[0m%x20%s%x20%x1b[33m(%an)%x1b[0m"' +alias cheat='/usr/bin/cheat' +alias weather='curl wttr.in' +alias whatthecom='git commit -am "$(whatcom)"' +function whatcom() { + curl --silent --fail https://whatthecommit.com/index.txt +} +export PATH=$PATH:~/scripts:/usr/local/go/bin + +PATH="$HOME/.node_modules/bin:$PATH" +export npm_config_prefix=~/.node_modules +export PATH="$PATH:$HOME/go/bin" +teatimer() { + sleep $1; + mplayer "$HOME/Music/Tornado.mp3" & notify-send 'YOUR TEA IS READY'; + curl -X POST "https://api.lifx.com/v1/lights/group_id:58da90e73566e43f037c7b6d59e56d24/effects/pulse" -H "Authorization: Bearer cfbc4b9dd981f5d99d486d22cb75a44535a8e616b9315580cac4ff5d5147ed86" -d 'period=1' -d 'cycles=4' -d 'color='$2; + fg + exit +} + +mksketch(){ + mkdir "$1"; + if [ "$2" = 'adr' ] + then + cp "$HOME/skeletons/adr.ino" "$1/$1.ino" + elif [ "$2" = "web" ] + then + cp "$HOME/skeletons/webserv.ino" "$1/$1.ino" + else + cp "$HOME/skeletons/basic.ino" "$1/$1.ino" + fi + vim "$1/$1.ino" +} diff --git a/Arch/.tmux.conf b/Arch/.tmux.conf deleted file mode 120000 index 277adde..0000000 --- a/Arch/.tmux.conf +++ /dev/null @@ -1 +0,0 @@ -/home/brad/.tmux.conf \ No newline at end of file diff --git a/Arch/.tmux.conf b/Arch/.tmux.conf new file mode 100644 index 0000000..86d3f3e --- /dev/null +++ b/Arch/.tmux.conf @@ -0,0 +1,66 @@ +set-option -g activity-action other +set-option -g assume-paste-time 1 +set-option -g base-index 0 +set-option -g bell-action any +set-option -g default-command "" +set-option -g default-shell "/bin/bash" +set-option -g destroy-unattached off +set-option -g detach-on-destroy on +set-option -g display-panes-active-colour red +set-option -g display-panes-colour blue +set-option -g display-panes-time 1000 +set-option -g display-time 750 +set-option -g history-limit 2000 +set-option -g key-table "root" +set-option -g lock-after-time 0 +set-option -g lock-command "lock -np" +set-option -g message-command-style fg=yellow,bg=black +set-option -g message-style fg=black,bg=yellow +set-option -g mouse off +set-option -g prefix C-b +set-option -g prefix2 None +set-option -g renumber-windows off +set-option -g repeat-time 500 +set-option -g set-titles off +set-option -g set-titles-string "#S:#I:#W - \"#T\" #{session_alerts}" +set-option -g silence-action other +set-option -g status on +set-option -g status-interval 15 +set-option -g status-justify left +set-option -g status-keys vi +set-option -g status-left "[#S] " +set-option -g status-left-length 10 +set-option -g status-left-style default +set-option -g status-position bottom +set-option -g status-right " \"#{=21:pane_title}\" %H:%M %d-%b-%y" +set-option -g status-right-length 40 +set-option -g status-right-style default +set-option -g status-style fg=black,bg=green +set-option -g update-environment[0] "DISPLAY" +set-option -g update-environment[1] "SSH_ASKPASS" +set-option -g update-environment[2] "SSH_AUTH_SOCK" +set-option -g update-environment[3] "SSH_AGENT_PID" +set-option -g update-environment[4] "SSH_CONNECTION" +set-option -g update-environment[5] "WINDOWID" +set-option -g update-environment[6] "XAUTHORITY" +set-option -g visual-activity off +set-option -g visual-bell off +set-option -g visual-silence off +set-option -g word-separators " -_@" + +# Set prefix to Ctrl-Space + unbind C-b + set -g prefix C-Space + bind Space send-prefix + +# split panes using | and - + bind | split-window -h + bind - split-window -v + unbind '"' + unbind % + +# switch panes using Alt-arrow without prefix + 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 diff --git a/Arch/.vimrc b/Arch/.vimrc deleted file mode 120000 index 73e0859..0000000 --- a/Arch/.vimrc +++ /dev/null @@ -1 +0,0 @@ -/home/brad/.vimrc \ No newline at end of file diff --git a/Arch/.vimrc b/Arch/.vimrc new file mode 100644 index 0000000..5ec7aa1 --- /dev/null +++ b/Arch/.vimrc @@ -0,0 +1,34 @@ +let mapleader = "-" +inoremap kj +nnoremap h +nnoremap l +nnoremap k +nnoremap j +map :NERDTreeToggle +map :bprevious +map :bnext +map :se fdm=manual +set nu +set autoread +set nowrap +set shiftwidth=2 +set shiftround +set showmatch +set ignorecase +set smarttab +set incsearch +set history=1000 +set undolevels=1000 +set visualbell +set title +set expandtab +set autoindent +set hlsearch +set tabstop=2 +colo ron +syntax on +set shiftround + +au CursorHoldI * stopinsert +au InsertEnter * let updaterestore=&updatetime | set updatetime=7000 +au InsertLeave * let &updatetime=updaterestore