Compare commits
18 commits
1c4dcee79e
...
5d6057ab98
Author | SHA1 | Date | |
---|---|---|---|
5d6057ab98 | |||
e12faa4bf2 | |||
3e1f37b045 | |||
4cc9ec8206 | |||
787b92fb08 | |||
a95f35d3ba | |||
255cd54f11 | |||
a6c5ed7951 | |||
a412c60605 | |||
555d2589c3 | |||
d2630b12eb | |||
3e3a64c712 | |||
9b1e8e2eb6 | |||
98cc2a7481 | |||
21feb328e5 | |||
739a9423de | |||
db8b381283 | |||
15bac5878d |
12 changed files with 349 additions and 2626 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,4 +1,5 @@
|
|||
.AppleDouble
|
||||
.netrwhist
|
||||
vim/.vim/plugged
|
||||
vim/.vim/autoload
|
||||
zsh/.zsh/cache
|
||||
|
|
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
[submodule "tmux/.tmux/plugins/tpm"]
|
||||
path = tmux/.tmux/plugins/tpm
|
||||
url = https://github.com/tmux-plugins/tpm.git
|
288
bash/#.bashrc#
Normal file
288
bash/#.bashrc#
Normal file
|
@ -0,0 +1,288 @@
|
|||
### Andrew's .bashrc
|
||||
|
||||
|
||||
|
||||
# _ _
|
||||
# ___ _ ____ _(_)_ __ ___ _ __ _ __ ___ ___ _ __ | |_
|
||||
# / _ \ '_ \ \ / / | '__/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __|
|
||||
# | __/ | | \ V /| | | | (_) | | | | | | | | | __/ | | | |_
|
||||
# \___|_| |_|\_/ |_|_| \___/|_| |_|_| |_| |_|\___|_| |_|\__|
|
||||
|
||||
|
||||
# Set some defaults.
|
||||
export EDITOR="emacsclient -t"
|
||||
export VISUAL="emacsclient -c -a emacs"
|
||||
export ALTERNATE_EDITOR=""
|
||||
export PATH=".:~/bin:~/.local/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
|
||||
export LSCOLORS="ExGxBxDxCxEgEdxbxgxcxd"
|
||||
|
||||
if [[-d
|
||||
|
||||
|
||||
|
||||
# checks (stolen from zshuery)
|
||||
if [[ $(uname) = 'Linux' ]]; then
|
||||
IS_LINUX=1
|
||||
fi
|
||||
|
||||
if [[ $(uname) = 'Darwin' ]]; then
|
||||
IS_MAC=1
|
||||
fi
|
||||
|
||||
if [[ -x `which brew >/dev/null 2>&1` ]]; then
|
||||
HAS_BREW=1
|
||||
fi
|
||||
|
||||
if [[ -x `which apt-get >/dev/null 2>&1` ]]; then
|
||||
sdfHAS_APT=1
|
||||
fi
|
||||
|
||||
|
||||
|
||||
# _
|
||||
# _ __ _ __ ___ _ __ ___ _ __ | |_
|
||||
# | '_ \| '__/ _ \| '_ ` _ \| '_ \| __|
|
||||
# | |_) | | | (_) | | | | | | |_) | |_
|
||||
# | .__/|_| \___/|_| |_| |_| .__/ \__|
|
||||
# |_| |_|
|
||||
|
||||
|
||||
# define useful aliases for color codes
|
||||
sh_norm="\[\033[0m\]"
|
||||
sh_black="\[\033[0;30m\]"
|
||||
sh_dark_gray="\[\033[1;30m\]"
|
||||
sh_blue="\[\033[0;34m\]"
|
||||
sh_light_blue="\[\033[1;34m\]"
|
||||
sh_green="\[\033[0;32m\]"
|
||||
sh_light_green="\[\033[1;32m\]"
|
||||
sh_cyan="\[\033[0;36m\]"
|
||||
sh_light_cyan="\[\033[1;36m\]"
|
||||
sh_red="\[\033[0;31m\]"
|
||||
sh_light_red="\[\033[1;31m\]"
|
||||
sh_purple="\[\033[0;35m\]"
|
||||
sh_light_purple="\[\033[1;35m\]"
|
||||
sh_brown="\[\033[0;33m\]"
|
||||
sh_yellow="\[\033[1;33m\]"
|
||||
sh_light_gray="\[\033[0;37m\]"
|
||||
sh_white="\[\033[1;37m\]"
|
||||
|
||||
function git_prompt {
|
||||
PCHANGED=""
|
||||
PAHEAD=""
|
||||
PBEHIND=""
|
||||
local FULL_BRANCH="$(git symbolic-ref -q HEAD 2>/dev/null || git name-rev --name-only --no-undefined --always HEAD 2>/dev/null)"
|
||||
PBRANCH="$(echo $FULL_BRANCH | sed 's/refs\/heads\///')"
|
||||
if [ -n $PBRANCH ]; then
|
||||
echo -n "${PBRANCH} "
|
||||
# Are there unstaged changes in the working directory
|
||||
local CHANGED=$(git status --porcelain --ignore-submodule -unormal 2>/dev/null | wc -l)
|
||||
if [ $CHANGED -gt 0 ]; then
|
||||
PCHANGED="◊"
|
||||
fi
|
||||
# Are we behind the origin?
|
||||
local NUM_BEHIND="$(git log --oneline ..@{u} 2>/dev/null | wc -l | tr -d ' ' )"
|
||||
if [ "$NUM_BEHIND" -gt 0 ]; then
|
||||
PBEHIND="↓"
|
||||
fi
|
||||
# Are we ahead of the origin?
|
||||
local NUM_AHEAD="$(git log --oneline @{u}.. 2>/dev/null | wc -l | tr -d ' ')"
|
||||
if [ "$NUM_AHEAD" -gt 0 ]; then
|
||||
PAHEAD="↑"
|
||||
fi
|
||||
|
||||
if [[ -n $PCHANGED || -n $PAHEAD || -n $PBEHIND ]]; then
|
||||
echo -n "${PCHANGED}${PBEHIND}${PAHEAD}"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
|
||||
# Make a pretty prompt.
|
||||
export PROMPT_COMMAND='history -a; if [ $? -ne 0 ];then ERROR_FLAG=1;else ERROR_FLAG=;fi;'
|
||||
export PS1=${HOSTCOLOUR}${sh_light_gray}'\h'${sh_green}':\w'${sh_light_gray}' $(git_prompt)'${sh_light_gray}'${ERROR_FLAG:+'${sh_light_red}'}\$ '${sh_norm}
|
||||
|
||||
# New files and folders should not be world readable
|
||||
umask 0027
|
||||
|
||||
# Borrow features from sensible.bash
|
||||
|
||||
# Trim long paths in prompt
|
||||
PROMPT_DIRTRIM=2
|
||||
|
||||
# Update window size after every command
|
||||
shopt -s checkwinsize
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# _ _ _
|
||||
# | |__ (_)___| |_ ___ _ __ _ _
|
||||
# | '_ \| / __| __/ _ \| '__| | | |
|
||||
# | | | | \__ \ || (_) | | | |_| |
|
||||
# |_| |_|_|___/\__\___/|_| \__, |
|
||||
# |___/
|
||||
|
||||
# Append history don't overwrite
|
||||
shopt -s histappend
|
||||
|
||||
# Save multi-line commands as one line
|
||||
shopt -s cmdhist
|
||||
|
||||
# Avoid duplicate entries
|
||||
export HISTCONTROL="erasedups:ignoreboth"
|
||||
|
||||
# Use ISO8601 time format for history file.
|
||||
export HISTTIMEFORMAT='%F %T '
|
||||
|
||||
# Big history file
|
||||
HISTSIZE=500000
|
||||
HISTFILESIZE=100000
|
||||
|
||||
|
||||
|
||||
|
||||
# _ _
|
||||
# __ _| (_) __ _ ___ ___ ___
|
||||
# / _` | | |/ _` / __|/ _ \/ __|
|
||||
# | (_| | | | (_| \__ \ __/\__ \
|
||||
# \__,_|_|_|\__,_|___/\___||___/
|
||||
|
||||
# jump down the tree.
|
||||
alias ..="cd .."
|
||||
|
||||
# empty the screen (or use C-l)
|
||||
alias c="clear"
|
||||
|
||||
# why wouldn't you want human readable sizes?
|
||||
alias df="df -h"
|
||||
|
||||
# get outta here!
|
||||
alias e="exit"
|
||||
|
||||
# grep shortie
|
||||
alias g="grep --color=auto -i "
|
||||
|
||||
# shorter ls
|
||||
alias l="ls -G --color"
|
||||
|
||||
# list files with details
|
||||
alias ll="ls -lh --color"
|
||||
|
||||
# list all files.
|
||||
alias la="ls -alh --color"
|
||||
|
||||
# List directories.
|
||||
alias ld="ls --color -Gd */"
|
||||
|
||||
# add some color to grep.
|
||||
alias grep="grep --color=auto"
|
||||
|
||||
# make the whole directory tree if required and let us know about it.
|
||||
alias mkdir="mkdir -p -v "
|
||||
|
||||
# don't ping forever.
|
||||
#alias ping="ping -c5"
|
||||
|
||||
# refresh the shell customizations without opening a new one.
|
||||
alias refresh="source ~/.bashrc && hash -r"
|
||||
|
||||
# A python calculator
|
||||
alias pc='python -ic "from __future__ import division; from math import *"'
|
||||
|
||||
# Start nano with line numbering no wrapping and autoindenting
|
||||
alias nano='nano -ciw '
|
||||
|
||||
# shortcut for tmux command
|
||||
alias tm="tmux new-session -A -s main"
|
||||
|
||||
# emacsclient
|
||||
alias ec="emacsclient -n -c -a emacs"
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# __ _ _
|
||||
# / _|_ _ _ __ ___| |_(_) ___ _ __ ___
|
||||
# | |_| | | | '_ \ / __| __| |/ _ \| '_ \/ __|
|
||||
# | _| |_| | | | | (__| |_| | (_) | | | \__ \
|
||||
# |_| \__,_|_| |_|\___|\__|_|\___/|_| |_|___/
|
||||
|
||||
# General purpose extract command.
|
||||
extract () {
|
||||
if [ -f $1 ] ; then
|
||||
case $1 in
|
||||
*.tar.bz2) tar xjf $1 ;;
|
||||
*.tar.gz) tar xzf $1 ;;
|
||||
*.tar.xz) tar xJf $1 ;;
|
||||
*.bz2) bunzip2 $1 ;;
|
||||
*.rar) rar x $1 ;;
|
||||
*.gz) gunzip $1 ;;
|
||||
*.tar) tar xf $1 ;;
|
||||
*.tbz2) tar xjf $1 ;;
|
||||
*.tgz) tar xzf $1 ;;
|
||||
*.zip) unzip $1 ;;
|
||||
*.Z) uncompress $1 ;;
|
||||
*.7z) 7za e $1 ;;
|
||||
*.xz) xz -dv $1 ;;
|
||||
*) echo "'$1' cannot be extracted via extract()" ;;
|
||||
esac
|
||||
else
|
||||
echo "'$1' is not a valid file"
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
# General purpose backup command.
|
||||
bu () { tar czf ~/.backup/`basename $1`-`date +%Y%m%d%H%M`.tgz $1; }
|
||||
|
||||
# create an archive of a list of files, compress the archive, and encrypt the compressed archive
|
||||
function archive-and-encrypt {
|
||||
echo -n "Enter desired output filename: "
|
||||
read filename
|
||||
tar cJ $1 | \
|
||||
gpg -q -r andrew@amdavidson.com -s -e -o "$filename.tar.xz.gpg"
|
||||
}
|
||||
|
||||
|
||||
# run mosh and tmux to a specific host
|
||||
function mt {
|
||||
mosh $1 -- tmux new-session -A -s main
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
# _ _
|
||||
# (_)_ __ ___ _ __ ___ _ __| |_ ___
|
||||
# | | '_ ` _ \| '_ \ / _ \| '__| __/ __|
|
||||
# | | | | | | | |_) | (_) | | | |_\__ \
|
||||
# |_|_| |_| |_| .__/ \___/|_| \__|___/
|
||||
# |_|
|
||||
|
||||
# import fzf if possible
|
||||
|
||||
# Debian
|
||||
if [ -d /usr/share/doc/fzf/examples ]; then
|
||||
source /usr/share/doc/fzf/examples/key-bindings.bash
|
||||
|
||||
if [ -f /usr/share/doc/fzf/examples/completion.bash ]; then
|
||||
source /usr/share/doc/fzf/examples/completion.bash
|
||||
fi
|
||||
fi
|
||||
|
||||
# MacOS
|
||||
if [ -d /opt/homebrew/opt/fzf/shell ]; then
|
||||
source /opt/homebrew/opt/fzf/shell/key-bindings.bash
|
||||
source /opt/homebrew/opt/fzf/shell/completion.bash
|
||||
fi
|
||||
|
||||
|
||||
|
||||
# Import local extensions if needed.
|
||||
if [ -f $HOME/.bashrc_local ]; then
|
||||
source $HOME/.bashrc_local
|
||||
fi
|
||||
|
31
bash/.bashrc
31
bash/.bashrc
|
@ -11,10 +11,15 @@
|
|||
|
||||
# Set some defaults.
|
||||
export EDITOR="nvim"
|
||||
export PATH=".:~/bin:~/.local/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
|
||||
export VISUAL="nvim"
|
||||
export ALTERNATE_EDITOR=""
|
||||
export PATH=".:~/bin:~/.local/bin:/usr/games:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
|
||||
export LSCOLORS="ExGxBxDxCxEgEdxbxgxcxd"
|
||||
|
||||
|
||||
# include doom in path if it exists
|
||||
if [ -d ~/.config/emacs/bin ]; then
|
||||
export PATH="$HOME/.emacs.d/bin:$PATH"
|
||||
fi
|
||||
|
||||
# checks (stolen from zshuery)
|
||||
if [[ $(uname) = 'Linux' ]]; then
|
||||
|
@ -33,12 +38,10 @@ if [[ -x `which apt-get >/dev/null 2>&1` ]]; then
|
|||
HAS_APT=1
|
||||
fi
|
||||
|
||||
if [[ -x `which yum >/dev/null 2>&1` ]]; then
|
||||
HAS_YUM=1
|
||||
if [[ -x `which gnome-shell >/dev/null 2>&1` ]]; then
|
||||
HAS_GNOME=1
|
||||
fi
|
||||
|
||||
|
||||
|
||||
# _
|
||||
# _ __ _ __ ___ _ __ ___ _ __ | |_
|
||||
# | '_ \| '__/ _ \| '_ ` _ \| '_ \| __|
|
||||
|
@ -100,7 +103,7 @@ function git_prompt {
|
|||
|
||||
# Make a pretty prompt.
|
||||
export PROMPT_COMMAND='history -a; if [ $? -ne 0 ];then ERROR_FLAG=1;else ERROR_FLAG=;fi;'
|
||||
export PS1=${HOSTCOLOUR}${sh_light_gray}'\t | \h'${sh_green}':\w'${sh_light_gray}' $(git_prompt)'${sh_light_gray}'${ERROR_FLAG:+'${sh_light_red}'}\$ '${sh_norm}
|
||||
export PS1=${HOSTCOLOUR}${sh_light_gray}'\h'${sh_green}':\w'${sh_light_gray}' $(git_prompt)'${sh_light_gray}'${ERROR_FLAG:+'${sh_light_red}'}\$ '${sh_norm}
|
||||
|
||||
# New files and folders should not be world readable
|
||||
umask 0027
|
||||
|
@ -197,13 +200,17 @@ alias nano='nano -ciw '
|
|||
# shortcut for tmux command
|
||||
alias tm="tmux new-session -A -s main"
|
||||
|
||||
# always use nvim
|
||||
alias vim='nvim'
|
||||
alias vi='nvim'
|
||||
alias nv='nvim'
|
||||
|
||||
# emacsclient
|
||||
alias ec="emacsclient -n -c -a emacs"
|
||||
|
||||
if [[ HAS_GNOME ]]; then
|
||||
alias nosleep="gnome-session-inhibit --inhibit-only"
|
||||
fi
|
||||
|
||||
# magic packets to wake up hosts
|
||||
alias wake_richie="wakeonlan ec:b1:d7:44:91:40"
|
||||
alias wake_ari="wakeonlan 3c:97:0e:97:32:84 6c:88:14:36:92:b0"
|
||||
alias wake_uzi="wakeonlan f4:d4:88:7d:6a:e9 34:99:71:d8:a4:48"
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
;; There are two ways to load a theme. Both assume the theme is installed and
|
||||
;; available. You can either set `doom-theme' or manually load a theme with the
|
||||
;; `load-theme' function. This is the default:
|
||||
(setq doom-theme 'doom-dracula)
|
||||
(setq doom-theme 'doom-nord)
|
||||
|
||||
;; This determines the style of line numbers in effect. If set to `nil', line
|
||||
;; numbers are disabled. For relative line numbers, set this to `relative'.
|
||||
|
@ -40,7 +40,8 @@
|
|||
|
||||
;; If you use `org' and don't want your org files in the default location below,
|
||||
;; change `org-directory'. It must be set before org loads!
|
||||
(setq org-directory "~/org/")
|
||||
(setq org-directory "~/Nextcloud/org/")
|
||||
(setq org-agenda-files '("~/Nextcloud/org/todo"))
|
||||
|
||||
|
||||
;; Whenever you reconfigure a package, make sure to wrap your config in an
|
||||
|
|
|
@ -31,16 +31,16 @@
|
|||
;;deft ; notational velocity for Emacs
|
||||
doom ; what makes DOOM look the way it does
|
||||
doom-dashboard ; a nifty splash screen for Emacs
|
||||
;;doom-quit ; DOOM quit-message prompts when you quit Emacs
|
||||
doom-quit ; DOOM quit-message prompts when you quit Emacs
|
||||
;;(emoji +unicode) ; 🙂
|
||||
hl-todo ; highlight TODO/FIXME/NOTE/DEPRECATED/HACK/REVIEW
|
||||
;;hydra
|
||||
;;indent-guides ; highlighted indent columns
|
||||
;;ligatures ; ligatures and symbols to make your code pretty again
|
||||
;;minimap ; show a map of the code on the side
|
||||
minimap ; show a map of the code on the side
|
||||
modeline ; snazzy, Atom-inspired modeline, plus API
|
||||
;;nav-flash ; blink cursor line after big motions
|
||||
;;neotree ; a project drawer, like NERDTree for vim
|
||||
neotree ; a project drawer, like NERDTree for vim
|
||||
ophints ; highlight the region an operation acts on
|
||||
(popup +defaults) ; tame sudden yet inevitable temporary windows
|
||||
;;tabs ; a tab bar for Emacs
|
||||
|
@ -173,7 +173,7 @@
|
|||
;;swift ; who asked for emoji variables?
|
||||
;;terra ; Earth and Moon in alignment for performance.
|
||||
;;web ; the tubes
|
||||
;;yaml ; JSON, but readable
|
||||
yaml ; JSON, but readable
|
||||
;;zig ; C, but simpler
|
||||
|
||||
:email
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[user]
|
||||
name = Andrew Davidson
|
||||
email = andrew@andr3w.net
|
||||
email = amd@amd.im
|
||||
signingkey = /home/amd/.ssh/id_rsa
|
||||
|
||||
[color]
|
||||
|
|
|
@ -1,95 +1,11 @@
|
|||
# Support 256 colors rather than 16.
|
||||
#set -g default-terminal "screen-256color"
|
||||
|
||||
# True color support in tmux
|
||||
set -g default-terminal "xterm-256color"
|
||||
set-option -ga terminal-overrides ",xterm-256color:Tc"
|
||||
|
||||
# Big history.
|
||||
set -g history-limit 10000
|
||||
|
||||
# Make the status bar pretty.
|
||||
# set -g status-bg colour16
|
||||
# set -g status-fg colour61
|
||||
# set -g window-status-style bg=colour236,fg=colour141
|
||||
# set -g window-status-current-style bg=colour236,fg=colour80
|
||||
|
||||
# Add some info to the status bar
|
||||
set -g status-right-length 70
|
||||
set -g status-right "#H | up #(uptime | awk '{print $3 \" \" $4}' | sed 's/,//') | Mem: #(~/bin/tmux-free-memory.sh) free | Load: #(uptime | rev | cut -f1-3 -d ' ' | rev)"
|
||||
|
||||
# Auto-set window title
|
||||
setw -g automatic-rename
|
||||
|
||||
# Make mouse useful
|
||||
set -g mouse on
|
||||
|
||||
# Add vim keys to navigate
|
||||
set-window-option -g mode-keys vi
|
||||
|
||||
# Add key to reload ~/.tmux.conf
|
||||
bind r source-file ~/.tmux.conf
|
||||
|
||||
# More logical (to me) split keys.
|
||||
bind - split-window -p 38 -v
|
||||
bind | split-window -p 38 -h
|
||||
|
||||
# Keybindings for resizing panes that don't collide with OSX bindings
|
||||
bind -r C-h resize-pane -L
|
||||
bind -r C-j resize-pane -D
|
||||
bind -r C-k resize-pane -U
|
||||
bind -r C-l resize-pane -R
|
||||
set -g @plugin 'tmux-plugins/tpm'
|
||||
set -g @plugin 'tmux-plugins/tmux-sensible'
|
||||
set -g @plugin "arcticicestudio/nord-tmux"
|
||||
|
||||
set -g mouse on
|
||||
|
||||
## COLORSCHEME: gruvbox dark
|
||||
set-option -g status "on"
|
||||
|
||||
# default statusbar color
|
||||
set-option -g status-style bg=colour237,fg=colour223 # bg=bg1, fg=fg1
|
||||
|
||||
# default window title colors
|
||||
set-window-option -g window-status-style bg=colour214,fg=colour237 # bg=yellow, fg=bg1
|
||||
|
||||
# default window with an activity alert
|
||||
set-window-option -g window-status-activity-style bg=colour237,fg=colour248 # bg=bg1, fg=fg3
|
||||
|
||||
# active window title colors
|
||||
set-window-option -g window-status-current-style bg=red,fg=colour237 # fg=bg1
|
||||
|
||||
# pane border
|
||||
set-option -g pane-active-border-style fg=colour250 #fg2
|
||||
set-option -g pane-border-style fg=colour237 #bg1
|
||||
|
||||
# message infos
|
||||
set-option -g message-style bg=colour239,fg=colour223 # bg=bg2, fg=fg1
|
||||
|
||||
# writing commands inactive
|
||||
set-option -g message-command-style bg=colour239,fg=colour223 # bg=fg3, fg=bg1
|
||||
|
||||
# pane number display
|
||||
set-option -g display-panes-active-colour colour250 #fg2
|
||||
set-option -g display-panes-colour colour237 #bg1
|
||||
|
||||
# clock
|
||||
set-window-option -g clock-mode-colour colour109 #blue
|
||||
|
||||
# bell
|
||||
set-window-option -g window-status-bell-style bg=colour167,fg=colour235 # bg=red, fg=bg
|
||||
|
||||
## Theme settings mixed with colors (unfortunately, but there is no cleaner way)
|
||||
set-option -g status-justify "left"
|
||||
set-option -g status-left-style none
|
||||
set-option -g status-left-length "80"
|
||||
set-option -g status-right-style none
|
||||
set-option -g status-right-length "80"
|
||||
set-window-option -g window-status-separator ""
|
||||
|
||||
set-option -g status-left "#[fg=colour248, bg=colour241] #S #[fg=colour241, bg=colour237, nobold, noitalics, nounderscore]"
|
||||
set-option -g status-right "#[fg=colour239, bg=colour237, nobold, nounderscore, noitalics]#[fg=colour246,bg=colour239] %Y-%m-%d %H:%M #[fg=colour248, bg=colour239, nobold, noitalics, nounderscore]#[fg=colour237, bg=colour248] #h "
|
||||
|
||||
set-window-option -g window-status-current-format "#[fg=colour237, bg=colour214, nobold, noitalics, nounderscore]#[fg=colour239, bg=colour214] #I #[fg=colour239, bg=colour214, bold] #W #[fg=colour214, bg=colour237, nobold, noitalics, nounderscore]"
|
||||
set-window-option -g window-status-format "#[fg=colour237,bg=colour239,noitalics]#[fg=colour223,bg=colour239] #I #[fg=colour223, bg=colour239] #W #[fg=colour239, bg=colour237, noitalics]"
|
||||
|
||||
|
||||
# Start a new session if one doesn't exist.
|
||||
new-session
|
||||
run '~/.tmux/plugins/tpm/tpm'
|
||||
|
|
1
tmux/.tmux/plugins/.gitignore
vendored
Normal file
1
tmux/.tmux/plugins/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
*
|
1
tmux/.tmux/plugins/tpm
Submodule
1
tmux/.tmux/plugins/tpm
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit 99469c4a9b1ccf77fade25842dc7bafbc8ce9946
|
File diff suppressed because it is too large
Load diff
37
vim/.vimrc
37
vim/.vimrc
|
@ -1,18 +1,19 @@
|
|||
" ==================== Plugins ====================
|
||||
call plug#begin()
|
||||
|
||||
" Airline
|
||||
Plug 'bling/vim-airline'
|
||||
|
||||
" Git integration
|
||||
Plug 'tpope/vim-fugitive'
|
||||
Plug 'airblade/vim-gitgutter'
|
||||
|
||||
" Gruvbox theme
|
||||
Plug 'morhetz/gruvbox'
|
||||
" Nord Theme
|
||||
Plug 'nordtheme/vim'
|
||||
|
||||
" Airline
|
||||
Plug 'bling/vim-airline'
|
||||
let g:airline_powerline_fonts = 1
|
||||
|
||||
" Commenter
|
||||
Plug 'scrooloose/nerdcommenter'
|
||||
" Plug 'scrooloose/nerdcommenter'
|
||||
|
||||
" Sayonara
|
||||
Plug 'mhinz/vim-sayonara', { 'on': 'Sayonara' }
|
||||
|
@ -20,8 +21,6 @@ Plug 'mhinz/vim-sayonara', { 'on': 'Sayonara' }
|
|||
" Go support for Vim
|
||||
"Plug 'fatih/vim-go', { 'do': ':GoInstallBinaries' }
|
||||
|
||||
" Python Stuff
|
||||
" Plug 'davidhalter/jedi-vim'
|
||||
if has('nvim')
|
||||
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
|
||||
else
|
||||
|
@ -30,28 +29,35 @@ else
|
|||
Plug 'roxma/vim-hug-neovim-rpc'
|
||||
endif
|
||||
let g:deoplete#enable_at_startup = 1
|
||||
|
||||
" Python source for deoplete
|
||||
Plug 'zchee/deoplete-jedi', { 'for': 'python' }
|
||||
|
||||
" Vim source for deoplete
|
||||
Plug 'Shougo/neco-vim', { 'for': 'vim' }
|
||||
|
||||
"{{ Python-related plugins
|
||||
" Python-related plugins
|
||||
" Python completion, goto definition etc.
|
||||
Plug 'davidhalter/jedi-vim', { 'for': 'python' }
|
||||
" Plug 'davidhalter/jedi-vim', { 'for': 'python' }
|
||||
|
||||
" Python syntax highlighting and more
|
||||
Plug 'numirias/semshi', { 'do': ':UpdateRemotePlugins' }
|
||||
" Plug 'numirias/semshi', { 'do': ':UpdateRemotePlugins' }
|
||||
|
||||
" Python auto formatting
|
||||
Plug 'psf/black', { 'branch': 'stable' }
|
||||
autocmd BufWritePre *.py execute ':Black'
|
||||
" Plug 'psf/black', { 'branch': 'stable' }
|
||||
" autocmd BufWritePre *.py execute ':Black'
|
||||
|
||||
" Smart Line Numbers
|
||||
Plug 'myusuf3/numbers.vim'
|
||||
|
||||
Plug 'tpope/vim-commentary'
|
||||
|
||||
" Ale
|
||||
Plug 'dense-analysis/ale'
|
||||
|
||||
" OpenSCAD Support
|
||||
Plug 'salkin-mada/openscad.nvim'
|
||||
|
||||
call plug#end()
|
||||
|
||||
" ==================== Vim Settings ====================
|
||||
|
@ -139,7 +145,7 @@ endif " has("autocmd")
|
|||
"let g:dracula_colorterm = 0
|
||||
"silent! colorscheme dracula
|
||||
set background=dark
|
||||
silent! colorscheme gruvbox
|
||||
silent! colorscheme nord
|
||||
|
||||
|
||||
" ==================== Code Folding ====================
|
||||
|
@ -186,6 +192,9 @@ map q: :q
|
|||
" Allow saving of files as sudo when I forgot to start vim using sudo.
|
||||
cmap w!! w !sudo tee > /dev/null %
|
||||
|
||||
" Disable F1 key
|
||||
nmap <F1> <nop>
|
||||
|
||||
" Go shortcuts just for .go files
|
||||
autocmd FileType go nmap <leader>r <Plug>(go-run)
|
||||
autocmd FileType go nmap <leader>t <Plug>(go-test)
|
||||
|
|
Loading…
Reference in a new issue