Compare commits

...

3 Commits

@ -1,2 +1,17 @@
# For vim
set -sg escape-time 0 set -sg escape-time 0
set -g default-terminal "tmux-256color"
# This is convenient sometimes
set -g mouse
# Attempting to get terminal colour
# set -g default-terminal "tmux-256color"
set -g default-terminal "xterm-256color"
# Top status with nice colours
set -g status-style "fg=#665c54"
set -g status-left-style "fg=#928374"
set -g status-bg default
set -g status-position top
set -g status-interval 1
set -g status-left ""

@ -0,0 +1,31 @@
# Create a new profile in ~/.config/Git
read -p "Enter git username: " NAME
read -p "Enter Email: " EMAIL
mkdir -p ~/.config/Git
PROFILE_PATH=~/.config/Git/git-profile-${NAME}.conf
cat <<EOT >> $PROFILE_PATH
[user]
email = $EMAIL
name = $NAME
[core]
editor = nvim
EOT
# Include the profile in gitconfig
touch ~/.gitconfig
read -p "Default profile? (y/n) " DEFAULT
if [ "$DEFAULT" != "y" ]; then
read -p "Enter profile directory (for example '~/Work'): " DIR
cat <<EOT >> ~/.gitconfig
[includeIf "gitdir:${DIR}/**"]
path = $PROFILE_PATH
EOT
else
cat <<EOT >> ~/.gitconfig
[include]
path = $PROFILE_PATH
EOT
fi

@ -0,0 +1 @@
ln -s $(pwd)/.tmux.conf ~

@ -5,7 +5,7 @@ return require('packer').startup(function(use)
-- Navigation -- Navigation
use { use {
'nvim-telescope/telescope.nvim', tag = '0.1.1', 'nvim-telescope/telescope.nvim', tag = '0.1.5',
-- or , branch = '0.1.x', -- or , branch = '0.1.x',
requires = { { 'nvim-lua/plenary.nvim' } } requires = { { 'nvim-lua/plenary.nvim' } }
} }

@ -49,8 +49,8 @@ local function save_profiles(threshold)
end end
time([[Luarocks path setup]], true) time([[Luarocks path setup]], true)
local package_path_str = "/home/braydonk/.cache/nvim/packer_hererocks/2.1.1694316387/share/lua/5.1/?.lua;/home/braydonk/.cache/nvim/packer_hererocks/2.1.1694316387/share/lua/5.1/?/init.lua;/home/braydonk/.cache/nvim/packer_hererocks/2.1.1694316387/lib/luarocks/rocks-5.1/?.lua;/home/braydonk/.cache/nvim/packer_hererocks/2.1.1694316387/lib/luarocks/rocks-5.1/?/init.lua" local package_path_str = "/home/braydonk/.cache/nvim/packer_hererocks/2.1.1707061634/share/lua/5.1/?.lua;/home/braydonk/.cache/nvim/packer_hererocks/2.1.1707061634/share/lua/5.1/?/init.lua;/home/braydonk/.cache/nvim/packer_hererocks/2.1.1707061634/lib/luarocks/rocks-5.1/?.lua;/home/braydonk/.cache/nvim/packer_hererocks/2.1.1707061634/lib/luarocks/rocks-5.1/?/init.lua"
local install_cpath_pattern = "/home/braydonk/.cache/nvim/packer_hererocks/2.1.1694316387/lib/lua/5.1/?.so" local install_cpath_pattern = "/home/braydonk/.cache/nvim/packer_hererocks/2.1.1707061634/lib/lua/5.1/?.so"
if not string.find(package.path, package_path_str, 1, true) then if not string.find(package.path, package_path_str, 1, true) then
package.path = package.path .. ';' .. package_path_str package.path = package.path .. ';' .. package_path_str
end end

Loading…
Cancel
Save