Compare commits
No commits in common. "ebdac1081fd0d6b748cd988270896080f677e874" and "2791a8220ec403ddb069f11046be772c54138eab" have entirely different histories.
ebdac1081f
...
2791a8220e
|
|
@ -1,6 +1,6 @@
|
||||||
# General
|
# General
|
||||||
alias 'clear=echo "No more clear for you"'
|
alias 'clear=echo "No more clear for you"'
|
||||||
# alias 'e=$EDITOR'
|
alias 'e=$EDITOR'
|
||||||
alias 'ec=$EDITOR ~/.bashrc'
|
alias 'ec=$EDITOR ~/.bashrc'
|
||||||
alias 'sc=source ~/.bashrc'
|
alias 'sc=source ~/.bashrc'
|
||||||
|
|
||||||
|
|
|
||||||
1
.bashrc
1
.bashrc
|
|
@ -9,7 +9,6 @@
|
||||||
export EDITOR=nvim
|
export EDITOR=nvim
|
||||||
export PATH="$HOME/.local/bin:$HOME/.cargo/bin:$PATH"
|
export PATH="$HOME/.local/bin:$HOME/.cargo/bin:$PATH"
|
||||||
export INPUTRC="$HOME/.inputrc"
|
export INPUTRC="$HOME/.inputrc"
|
||||||
export HISTCONTROL=ignorespace
|
|
||||||
|
|
||||||
|
|
||||||
# =====FUNCTIONS=====
|
# =====FUNCTIONS=====
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# =====GENERAL=====
|
# =====GENERAL=====
|
||||||
# Main modifier; Mod1 is alt
|
# Main modifier; Mod1 is alt
|
||||||
set $mod Mod4
|
set $mod Mod1
|
||||||
|
|
||||||
# Modifier for floating-related operations
|
# Modifier for floating-related operations
|
||||||
floating_modifier $mod
|
floating_modifier $mod
|
||||||
|
|
|
||||||
|
|
@ -65,6 +65,4 @@ Plug 'udalov/kotlin-vim'
|
||||||
|
|
||||||
Plug 'editorconfig/editorconfig-vim'
|
Plug 'editorconfig/editorconfig-vim'
|
||||||
|
|
||||||
Plug 'maxmellon/vim-jsx-pretty'
|
|
||||||
|
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
|
||||||
23
.local/bin/e
23
.local/bin/e
|
|
@ -1,23 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
create_session() {
|
|
||||||
tmux new -ds "$1"
|
|
||||||
|
|
||||||
tmux send-keys -t "$1" 'nvim' Enter
|
|
||||||
}
|
|
||||||
|
|
||||||
# Use Git repo root as dir if we're in one
|
|
||||||
dir=`git rev-parse --show-toplevel 2> /dev/null || pwd`
|
|
||||||
dir_hash=`echo "$dir" | shasum | grep -o '^[^ ]\+'`
|
|
||||||
dir_name=`basename "$dir" | sed 's/[^a-zA-Z0-9]/_/g'`
|
|
||||||
session_name="${dir_name}-${dir_hash}"
|
|
||||||
|
|
||||||
tmux has -t "$session_name" 2> /dev/null || \
|
|
||||||
create_session "$session_name"
|
|
||||||
|
|
||||||
# Attach to the session
|
|
||||||
if [ -n "$TMUX" ]; then
|
|
||||||
tmux switch-client -t "$session_name"
|
|
||||||
else
|
|
||||||
tmux attach -t "$session_name"
|
|
||||||
fi
|
|
||||||
26
.tmux.conf
26
.tmux.conf
|
|
@ -1,27 +1 @@
|
||||||
<<<<<<< Updated upstream
|
|
||||||
set -s escape-time 0
|
set -s escape-time 0
|
||||||
=======
|
|
||||||
# Change prefix to Ctrl-a
|
|
||||||
unbind C-b
|
|
||||||
set -g prefix C-a
|
|
||||||
|
|
||||||
# Prevent weird delay in Vim
|
|
||||||
set -s escape-time 0
|
|
||||||
|
|
||||||
# Make tabs count from 1
|
|
||||||
set -g base-index 1
|
|
||||||
|
|
||||||
# Key binding to reload config file
|
|
||||||
bind r source-file ~/.tmux.conf \; display "Reloaded config."
|
|
||||||
|
|
||||||
# Customize bar
|
|
||||||
set -g status-style fg=default,bg=default
|
|
||||||
set -g status-left ''
|
|
||||||
set -g status-right ''
|
|
||||||
set -g status-justify centre
|
|
||||||
|
|
||||||
bind h select-pane -L
|
|
||||||
bind j select-pane -D
|
|
||||||
bind k select-pane -U
|
|
||||||
bind l select-pane -R
|
|
||||||
>>>>>>> Stashed changes
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue