diff --git a/kitty/kitty.conf b/kitty/kitty.conf new file mode 100644 index 0000000..2caa939 --- /dev/null +++ b/kitty/kitty.conf @@ -0,0 +1 @@ +shell bash --login diff --git a/nvim/lua/config/autocmds.lua b/nvim/lua/config/autocmds.lua index 4221e75..6a87830 100644 --- a/nvim/lua/config/autocmds.lua +++ b/nvim/lua/config/autocmds.lua @@ -5,4 +5,3 @@ -- with `vim.api.nvim_create_autocmd` -- -- Or remove existing autocmds by their group name (which is prefixed with `lazyvim_` for the defaults) --- e.g. vim.api.nvim_del_augroup_by_name("lazyvim_wrap_spell") diff --git a/nvim/lua/plugins/auto-session.lua b/nvim/lua/plugins/auto-session.lua new file mode 100644 index 0000000..20da845 --- /dev/null +++ b/nvim/lua/plugins/auto-session.lua @@ -0,0 +1,7 @@ +return { + "rmagatti/auto-session", + lazy = false, + opts = { + suppressed_dirs = { "~/", "~/Projects", "~/Downloads", "/" }, + }, +} diff --git a/profile b/profile new file mode 100755 index 0000000..0ced080 --- /dev/null +++ b/profile @@ -0,0 +1,31 @@ +# ~/.profile: executed by the command interpreter for login shells. +# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login +# exists. +# see /usr/share/doc/bash/examples/startup-files for examples. +# the files are located in the bash-doc package. + +# the default umask is set in /etc/profile; for setting the umask +# for ssh logins, install and configure the libpam-umask package. +#umask 022 + +# if running bash +if [ -n "$BASH_VERSION" ]; then + # include .bashrc if it exists + if [ -f "$HOME/.bashrc" ]; then + . "$HOME/.bashrc" + fi +fi + +# set PATH so it includes user's private bin if it exists +if [ -d "$HOME/bin" ] ; then + PATH="$HOME/bin:$PATH" +fi + +# set PATH so it includes user's private bin if it exists +if [ -d "$HOME/.local/bin" ] ; then + PATH="$HOME/.local/bin:$PATH" +fi + +if [ -n "$PS1" ] && [ -z "$TMUX" ] && [ -z "$SSH_TTY" ] && [ -t 1 ]; then + tmux attach-session -t main || tmux new-session -s main +fi diff --git a/setup.sh b/setup.sh index 16946db..3307a7a 100755 --- a/setup.sh +++ b/setup.sh @@ -14,8 +14,15 @@ link() { ln -s "$2" "$1" fi } +configlink() { + link ~/.config/$1 ~/dotfiles/$1 +} checkdir ~/.config link ~/.dotfiles ~/dotfiles -link ~/.config/tmux ~/dotfiles/tmux -link ~/.config/nvim ~/dotfiles/nvim +link ~/.profile ~/dotfiles/profile +link ~/.config/i3 ~/dotfiles/i3 + +configlink tmux +configlink nvim +configlink kitty