From 878545face6fc681a50da2eb43bb580795bfb9ca Mon Sep 17 00:00:00 2001 From: Tyrel Souza Date: Wed, 10 Apr 2024 22:56:00 -0400 Subject: [PATCH] some nvim fixes --- home/config/i3/config | 341 +++++++++--------------- home/config/nvim/lazy-lock.json | 3 +- home/config/nvim/lua/plugins/all.lua | 11 + home/config/nvim/lua/settings_after.lua | 5 +- home/jobs/redlattice.sh | 10 +- home/shell_aliases | 3 +- setup.sh | 22 +- 7 files changed, 157 insertions(+), 238 deletions(-) diff --git a/home/config/i3/config b/home/config/i3/config index 3b2aed0..4b453ce 100644 --- a/home/config/i3/config +++ b/home/config/i3/config @@ -1,208 +1,167 @@ +# This file has been auto-generated by i3-config-wizard(1). +# It will not be overwritten, so edit it as you like. +# +# Should you change your keyboard layout some time, delete +# this file and re-run i3-config-wizard(1). +# + +# i3 config file (v4) +# +# Please see https://i3wm.org/docs/userguide.html for a complete reference! + set $mod Mod4 -new_window pixel 1 -new_float normal +# Font for window titles. Will also be used by the bar unless a different font +# is used in the bar {} block below. +font pango:monospace 8 -hide_edge_borders none +# This font is widely installed, provides lots of unicode glyphs, right-to-left +# text rendering and scalability on retina/hidpi displays (thanks to pango). +#font pango:DejaVu Sans Mono 8 -bindsym $mod+u border none -bindsym $mod+y border pixel 1 -bindsym $mod+n border normal +# Start XDG autostart .desktop files using dex. See also +# https://wiki.archlinux.org/index.php/XDG_Autostart +exec --no-startup-id dex --autostart --environment i3 -font xft:URWGothic-Book 11 +# The combination of xss-lock, nm-applet and pactl is a popular choice, so +# they are included here as an example. Modify as you see fit. +# xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the +# screen before suspend. Use loginctl lock-session to lock your screen. +exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork + +# NetworkManager is the most popular way to manage wireless networks on Linux, +# and nm-applet is a desktop environment-independent system tray GUI for it. +exec --no-startup-id nm-applet + +# Use pactl to adjust volume in PulseAudio. +set $refresh_i3status killall -SIGUSR1 i3status +bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status +bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status +bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status +bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status + +# Use Mouse+$mod to drag floating windows to their wanted position floating_modifier $mod +# start a terminal bindsym $mod+Return exec i3-sensible-terminal -# Window kill command +# kill focused window bindsym $mod+Shift+q kill -# start program launcher -bindsym $mod+d exec /home/tyrel/.config/i3/rofi +# start dmenu (a program launcher) +# bindsym $mod+d exec --no-startup-id dmenu_run +bindsym $mod+d exec rofi -show run +bindsym $mod+Shift+d exec rofi -show drun +bindsym $mod+Shift+Tab exec rofi -show window -p '[window] ' +# A more modern dmenu replacement is rofi: +# bindcode $mod+40 exec "rofi -modi drun,run -show drun" +# There also is i3-dmenu-desktop which only displays applications shipping a +# .desktop file. It is a wrapper around dmenu, so you need that installed. +# bindcode $mod+40 exec --no-startup-id i3-dmenu-desktop # change focus +bindsym $mod+j focus left +bindsym $mod+k focus down +bindsym $mod+l focus up +bindsym $mod+semicolon focus right + +# alternatively, you can use the cursor keys: bindsym $mod+Left focus left bindsym $mod+Down focus down bindsym $mod+Up focus up bindsym $mod+Right focus right # move focused window +#bindsym $mod+Shift+j move left +#bindsym $mod+Shift+k move down +#bindsym $mod+Shift+l move up +#bindsym $mod+Shift+semicolon move right + +# alternatively, you can use the cursor keys: bindsym $mod+Shift+Left move left bindsym $mod+Shift+Down move down bindsym $mod+Shift+Up move up bindsym $mod+Shift+Right move right -# workspace back and forth (with/without active container) -workspace_auto_back_and_forth yes -bindsym $mod+b workspace back_and_forth -bindsym $mod+Shift+b move container to workspace back_and_forth; workspace back_and_forth +# split in horizontal orientation +bindsym $mod+h split h -# split orientation -bindsym $mod+h split h;exec notify-send 'tile horizontally' -bindsym $mod+v split v;exec notify-send 'tile vertically' -bindsym $mod+q split toggle +# split in vertical orientation +bindsym $mod+v split v -# toggle fullscreen mode for the focused container +# enter fullscreen mode for the focused container bindsym $mod+f fullscreen toggle -# change container layout (stacked, tabbed, toggle split) -bindsym $mod+s layout stacking -bindsym $mod+w layout tabbed -bindsym $mod+e layout toggle split - # toggle tiling / floating bindsym $mod+Shift+space floating toggle # change focus between tiling / floating windows bindsym $mod+space focus mode_toggle -# toggle sticky -bindsym $mod+Shift+s sticky toggle - # focus the parent container bindsym $mod+a focus parent -# move the currently focused window to the scratchpad -bindsym $mod+Shift+minus move scratchpad +# focus the child container +#bindsym $mod+d focus child -# Show the next scratchpad window or hide the focused scratchpad window. -# If there are multiple scratchpad windows, this command cycles through them. -bindsym $mod+minus scratchpad show - -# navigate workspaces next / previous -bindsym $mod+Ctrl+Right workspace next -bindsym $mod+Ctrl+Left workspace prev - -# workspaces -set $ws1 1 -set $ws2 2 -set $ws3 3 -set $ws4 4 -set $ws5 5 -set $ws6 6 -set $ws7 7 -set $ws8 8 -set $ws9 9 -set $ws9 9 +# Define names for default workspaces for which we configure key bindings later on. +# We use variables to avoid repeating the names in multiple places. +set $ws1 "1" +set $ws2 "2" +set $ws3 "3" +set $ws4 "4" +set $ws5 "5" +set $ws6 "6" +set $ws7 "7" +set $ws8 "8" +set $ws9 "9" +set $ws10 "10" # switch to workspace -workspace 1 output DP-4 -workspace 2 output DP-4 -workspace 3 output DP-4 -workspace 4 output DP-4 -workspace 5 output DP-5 -workspace 6 output DP-5 -workspace 7 output DP-1 -workspace 8 output DP-1 -workspace 9 output DP-1 -workspace 10 output DP-1 +bindsym $mod+1 workspace number $ws1 +bindsym $mod+2 workspace number $ws2 +bindsym $mod+3 workspace number $ws3 +bindsym $mod+4 workspace number $ws4 +bindsym $mod+5 workspace number $ws5 +bindsym $mod+6 workspace number $ws6 +bindsym $mod+7 workspace number $ws7 +bindsym $mod+8 workspace number $ws8 +bindsym $mod+9 workspace number $ws9 +bindsym $mod+0 workspace number $ws10 -bindsym $mod+1 workspace $ws1 -bindsym $mod+2 workspace $ws2 -bindsym $mod+3 workspace $ws3 -bindsym $mod+4 workspace $ws4 -bindsym $mod+5 workspace $ws5 -bindsym $mod+6 workspace $ws6 -bindsym $mod+7 workspace $ws7 -bindsym $mod+8 workspace $ws8 -bindsym $mod+9 workspace $ws9 -bindsym $mod+0 workspace $ws10 - -# Move focused container to workspace -bindsym $mod+Ctrl+1 move container to workspace $ws1 -bindsym $mod+Ctrl+2 move container to workspace $ws2 -bindsym $mod+Ctrl+3 move container to workspace $ws3 -bindsym $mod+Ctrl+4 move container to workspace $ws4 -bindsym $mod+Ctrl+5 move container to workspace $ws5 -bindsym $mod+Ctrl+6 move container to workspace $ws6 -bindsym $mod+Ctrl+7 move container to workspace $ws7 -bindsym $mod+Ctrl+8 move container to workspace $ws8 -bindsym $mod+Ctrl+9 move container to workspace $ws9 -bindsym $mod+Ctrl+0 move container to workspace $ws10 - -# Move to workspace with focused container -bindsym $mod+Shift+1 move container to workspace $ws1; workspace $ws1 -bindsym $mod+Shift+2 move container to workspace $ws2; workspace $ws2 -bindsym $mod+Shift+3 move container to workspace $ws3; workspace $ws3 -bindsym $mod+Shift+4 move container to workspace $ws4; workspace $ws4 -bindsym $mod+Shift+5 move container to workspace $ws5; workspace $ws5 -bindsym $mod+Shift+6 move container to workspace $ws6; workspace $ws6 -bindsym $mod+Shift+7 move container to workspace $ws7; workspace $ws7 -bindsym $mod+Shift+8 move container to workspace $ws8; workspace $ws8 -bindsym $mod+Shift+9 move container to workspace $ws9; workspace $ws9 -bindsym $mod+Shift+0 move container to workspace $ws0; workspace $ws0 - -# Open specific applications in floating mode -for_window [title="alsamixer"] floating enable border pixel 1 -for_window [class="Calamares"] floating enable border normal -for_window [class="Clipgrab"] floating enable -for_window [title="File Transfer*"] floating enable -for_window [class="Galculator"] floating enable border pixel 1 -for_window [class="GParted"] floating enable border normal -for_window [title="i3_help"] floating enable sticky enable border normal -for_window [class="Lightdm-gtk-greeter-settings"] floating enable -for_window [class="Lxappearance"] floating enable sticky enable border normal -for_window [class="Manjaro-hello"] floating enable -for_window [class="Manjaro Settings Manager"] floating enable border normal -for_window [title="MuseScore: Play Panel"] floating enable -for_window [class="Nitrogen"] floating enable sticky enable border normal -for_window [class="Oblogout"] fullscreen enable -for_window [class="octopi"] floating enable -for_window [title="About Pale Moon"] floating enable -for_window [class="Pamac-manager"] floating enable -for_window [class="Pavucontrol"] floating enable -for_window [class="qt5ct"] floating enable sticky enable border normal -for_window [class="Qtconfig-qt4"] floating enable sticky enable border normal -for_window [class="Simple-scan"] floating enable border normal -for_window [class="(?i)System-config-printer.py"] floating enable border normal -for_window [class="Skype"] floating enable border normal -for_window [class="Thus"] floating enable border normal -for_window [class="Timeset-gui"] floating enable border normal -for_window [class="(?i)virtualbox"] floating enable border normal -for_window [class="Xfburn"] floating enable - -# switch to workspace with urgent window automatically -for_window [urgent=latest] focus +# move focused container to workspace +bindsym $mod+Shift+1 move container to workspace number $ws1 +bindsym $mod+Shift+2 move container to workspace number $ws2 +bindsym $mod+Shift+3 move container to workspace number $ws3 +bindsym $mod+Shift+4 move container to workspace number $ws4 +bindsym $mod+Shift+5 move container to workspace number $ws5 +bindsym $mod+Shift+6 move container to workspace number $ws6 +bindsym $mod+Shift+7 move container to workspace number $ws7 +bindsym $mod+Shift+8 move container to workspace number $ws8 +bindsym $mod+Shift+9 move container to workspace number $ws9 +bindsym $mod+Shift+0 move container to workspace number $ws10 # reload the configuration file bindsym $mod+Shift+c reload - # restart i3 inplace (preserves your layout/session, can be used to upgrade i3) bindsym $mod+Shift+r restart - # exit i3 (logs you out of your X session) -bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'" +bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'" -# Set shut down, restart and locking features -bindsym $mod+0 mode "$mode_system" -set $mode_system (l)ock, (e)xit, switch_(u)ser, (s)uspend, (h)ibernate, (r)eboot, (Shift+s)hutdown -mode "$mode_system" { - bindsym l exec --no-startup-id i3exit lock, mode "default" - bindsym s exec --no-startup-id i3exit suspend, mode "default" - bindsym u exec --no-startup-id i3exit switch_user, mode "default" - bindsym e exec --no-startup-id i3exit logout, mode "default" - bindsym h exec --no-startup-id i3exit hibernate, mode "default" - bindsym r exec --no-startup-id i3exit reboot, mode "default" - bindsym Shift+s exec --no-startup-id i3exit shutdown, mode "default" - - # exit system mode: "Enter" or "Escape" - bindsym Return mode "default" - bindsym Escape mode "default" -} - -# Resize window (you can also use the mouse for that) -bindsym $mod+r mode "resize" +# resize window (you can also use the mouse for that) mode "resize" { # These bindings trigger as soon as you enter the resize mode + # Pressing left will shrink the window’s width. # Pressing right will grow the window’s width. # Pressing up will shrink the window’s height. # Pressing down will grow the window’s height. - bindsym j resize shrink width 5 px or 5 ppt - bindsym k resize grow height 5 px or 5 ppt - bindsym l resize shrink height 5 px or 5 ppt - bindsym semicolon resize grow width 5 px or 5 ppt + bindsym j resize shrink width 10 px or 10 ppt + bindsym k resize grow height 10 px or 10 ppt + bindsym l resize shrink height 10 px or 10 ppt + bindsym semicolon resize grow width 10 px or 10 ppt # same bindings, but for the arrow keys bindsym Left resize shrink width 10 px or 10 ppt @@ -210,81 +169,23 @@ mode "resize" { bindsym Up resize shrink height 10 px or 10 ppt bindsym Right resize grow width 10 px or 10 ppt - # exit resize mode: Enter or Escape + # back to normal: Enter or Escape or $mod+r bindsym Return mode "default" bindsym Escape mode "default" + bindsym $mod+r mode "default" } -# Autostart applications -exec --no-startup-id nitrogen --restore; sleep 1; compton -b -exec --no-startup-id nm-applet -exec --no-startup-id xfce4-power-manager -exec --no-startup-id pamac-tray -exec --no-startup-id clipit -exec_always --no-startup-id ff-theme-util -exec_always --no-startup-id fix_xcursor -exec_always --no-startup-id /$HOME/.config/polybar/i3wmthemer_bar_launch.sh +bindsym $mod+r mode "resize" -# Theme colors -client.focused #bfbfbf #162025 #bfbfbf #39402e #39402e -client.focused_inactive #bfbfbf #162025 #bfbfbf #75404b #75404b -client.unfocused #bfbfbf #162025 #bfbfbf #75404b #75404b -client.urgent #bfbfbf #162025 #bfbfbf #75404b #75404b -client.placeholder #bfbfbf #162025 #bfbfbf #75404b #75404b - -client.background #162025 - -# Gaps -# smart_gaps on -# gaps inner 10 -# gaps outer -4 - - -# Press $mod+Shift+g to enter the gap mode. Choose o or i for modifying outer/inner gaps. Press one of + / - (in-/decrement for current workspace) or 0 (remove gaps for current workspace). If you also press Shift with these keys, the change will be global for all workspaces. -set $mode_gaps Gaps: (o) outer, (i) inner -set $mode_gaps_outer Outer Gaps: +|-|0 (local), Shift + +|-|0 (global) -set $mode_gaps_inner Inner Gaps: +|-|0 (local), Shift + +|-|0 (global) -bindsym $mod+Shift+g mode "$mode_gaps" - -mode "$mode_gaps" { - bindsym o mode "$mode_gaps_outer" - bindsym i mode "$mode_gaps_inner" - bindsym Return mode "default" - bindsym Escape mode "default" -} -mode "$mode_gaps_inner" { - bindsym plus gaps inner current plus 5 - bindsym minus gaps inner current minus 5 - bindsym 0 gaps inner current set 0 - - bindsym Shift+plus gaps inner all plus 5 - bindsym Shift+minus gaps inner all minus 5 - bindsym Shift+0 gaps inner all set 0 - - bindsym Return mode "default" - bindsym Escape mode "default" -} -mode "$mode_gaps_outer" { - bindsym plus gaps outer current plus 5 - bindsym minus gaps outer current minus 5 - bindsym 0 gaps outer current set 0 - - bindsym Shift+plus gaps outer all plus 5 - bindsym Shift+minus gaps outer all minus 5 - bindsym Shift+0 gaps outer all set 0 - - bindsym Return mode "default" - bindsym Escape mode "default" +# Start i3bar to display a workspace bar (plus the system information i3status +# finds out, if available) +bar { + position bottom + status_command i3status -c ~/.config/i3status/config + tray_output primary } -bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +5% #increase sound volume -bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -5% #decrease sound volume -bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle # mute sound +exec --no-startup-id feh --bg-scale /home/tyrel/Pictures/wallpapers/uw_vibes.png +exec --no-startup-id ~/bin/startup_i3.sh - - -# Sreen brightness controls -bindsym XF86MonBrightnessUp exec xbacklight -inc 20 # increase screen brightness -bindsym XF86MonBrightnessDown exec xbacklight -dec 20 # decrease screen brightness - -exec --no-startup-id volumeicon +bindsym $mod+Shift+l exec dm-tool switch-to-greeter diff --git a/home/config/nvim/lazy-lock.json b/home/config/nvim/lazy-lock.json index 59ff636..1f12017 100644 --- a/home/config/nvim/lazy-lock.json +++ b/home/config/nvim/lazy-lock.json @@ -1,5 +1,6 @@ { "auto-session": { "branch": "main", "commit": "3eb26b949e1b90798e84926848551046e2eb0721" }, + "bamboo.nvim": { "branch": "master", "commit": "5c826c8ad27010ac2fcaf7deb4c36b16d00ef5a1" }, "cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" }, "cmp-nvim-lsp": { "branch": "main", "commit": "44b16d11215dce86f253ce0c30949813c0a90765" }, "cmp-nvim-lsp-signature-help": { "branch": "main", "commit": "3d8912ebeb56e5ae08ef0906e3a54de1c66b92f1" }, @@ -10,7 +11,7 @@ "fzf.vim": { "branch": "master", "commit": "1e054c1d075d87903647db9320116d360eb8b024" }, "indent-blankline.nvim": { "branch": "master", "commit": "29be0919b91fb59eca9e90690d76014233392bef" }, "jellybeans.vim": { "branch": "master", "commit": "ef83bf4dc8b3eacffc97bf5c96ab2581b415c9fa" }, - "lazy.nvim": { "branch": "main", "commit": "96584866b9c5e998cbae300594d0ccfd0c464627" }, + "lazy.nvim": { "branch": "main", "commit": "bef521ac89c8d423f9d092e37b58e8af0c099309" }, "logstash.vim": { "branch": "master", "commit": "531fe079e8c964d2b5786bcb5871c72f966adc2a" }, "lualine-lsp-progress": { "branch": "master", "commit": "56842d097245a08d77912edf5f2a69ba29f275d7" }, "lualine.nvim": { "branch": "master", "commit": "2248ef254d0a1488a72041cfb45ca9caada6d994" }, diff --git a/home/config/nvim/lua/plugins/all.lua b/home/config/nvim/lua/plugins/all.lua index ba22b01..400d321 100644 --- a/home/config/nvim/lua/plugins/all.lua +++ b/home/config/nvim/lua/plugins/all.lua @@ -206,4 +206,15 @@ return { { 'nvim-treesitter/nvim-treesitter-refactor' }, { 'RRethy/nvim-treesitter-textsubjects' }, { 'robbles/logstash.vim' }, + { + 'ribru17/bamboo.nvim', + lazy = false, + priority = 1000, + config = function() + require('bamboo').setup { + -- optional configuration here + } + require('bamboo').load() + end, + }, } diff --git a/home/config/nvim/lua/settings_after.lua b/home/config/nvim/lua/settings_after.lua index 13ffb2b..579eca8 100644 --- a/home/config/nvim/lua/settings_after.lua +++ b/home/config/nvim/lua/settings_after.lua @@ -40,11 +40,11 @@ vim.opt.undofile = true vim.opt.number = true vim.opt.relativenumber = true -vim.cmd 'colorscheme Atelier_SulphurpoolDark' +vim.cmd 'colorscheme bamboo' vim.g.floaterm_keymap_toggle = '' vim.g.floaterm_width = 0.9 vim.g.floaterm_height = 0.9 -vim.g.floaterm_shell = "/bin/zsh" +vim.g.floaterm_shell = "/bin/bash" vim.g.rustfmt_autosave = 1 vim.g.rust_use_custom_ctags_defs = 1 @@ -126,6 +126,7 @@ vim.api.nvim_set_keymap("n", "", ":NERDTreeToggle", {silent = true}) vim.api.nvim_set_keymap("n", "", ":set invnumber invrelativenumber", {silent = true }) vim.api.nvim_set_keymap("i", "", "", {silent = true }) vim.api.nvim_set_keymap("n", "", ":Tagbar", {silent = true }) +vim.api.nvim_set_keymap("n", "", ":FloatermToggle", {silent = true }) -- LSP Diagnostics Options Setup diff --git a/home/jobs/redlattice.sh b/home/jobs/redlattice.sh index e7c0b8d..e06a998 100644 --- a/home/jobs/redlattice.sh +++ b/home/jobs/redlattice.sh @@ -14,8 +14,14 @@ function rl-gsub() { } function rl-portalshell() { - docker-compose -f /Users/tyrel/rl/vail-dev/docker-compose.yml exec portald bash + docker compose -f /home/tsouza/rl/vail-dev/docker-compose.yml exec portald bash +} +function rl-dbshell() { + docker compose -f /home/tsouza/rl/vail-dev/docker-compose.yml exec portal-db bash } function rl-syncnode() { - docker-compose -f /Users/tyrel/rl/vail-dev/docker-compose.yml exec portald portal-manage sync_node + docker compose -f /home/tsouza/rl/vail-dev/docker-compose.yml exec portald portal-manage sync_node +} +function rl-redisshell() { + docker compose -f /home/tsouza/rl/vail-dev/docker-compose.yml exec portal-redis bash } diff --git a/home/shell_aliases b/home/shell_aliases index 3dcbdc3..abc1586 100644 --- a/home/shell_aliases +++ b/home/shell_aliases @@ -1,4 +1,4 @@ -alias cat='bat' +alias cat='batcat' alias dots='cd ~/code/dotfiles/' alias fuckingip="curl https://wtfismyip.com/json" alias g='git' @@ -6,4 +6,3 @@ alias gp='git push -u' alias ls="exa -lhFgxUm --git --time-style long-iso --group-directories-first" alias vimini="vim ~/.config/nvim/init.vim" alias vim=nvim -alias tree=tree -I 'node_modules|venv' diff --git a/setup.sh b/setup.sh index 756fd3f..ceaa838 100755 --- a/setup.sh +++ b/setup.sh @@ -1,6 +1,7 @@ #!/bin/bash -HOME=/home/coder +USER=tyrel +HOME=/home/tyrel sudo apt-get install software-properties-common sudo add-apt-repository -y ppa:neovim-ppa/unstable @@ -13,16 +14,15 @@ curl https://sh.rustup.rs -sSf | sh sudo curl https://pyenv.run | bash -ln -s $(pwd)/home/config/nvim /home/coder/.config/nvim -ln -s $(pwd)/home/bin /home/coder/bin -ln -s $(pwd)/home/gitconfig /home/coder/.gitconfig -ln -s $(pwd)/home/shell_aliases /home/coder/.shell_aliases -ln -s $(pwd)/home/shell_funcs /home/coder/.shell_funcs -#ln -s home/zshrc /home/coder/.zshrc -# -echo 'export PYENV_ROOT="/home/coder/.pyenv"' >> /home/coder/.bashrc -echo '[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"' >> /home/coder/.bashrc -echo 'eval "$(pyenv init -)"' >> /home/coder/.bashrc +ln -s $(pwd)/home/config/nvim /home/$USER/.config/nvim +ln -s $(pwd)/home/bin /home/$USER/bin +ln -s $(pwd)/home/gitconfig /home/$USER/.gitconfig +ln -s $(pwd)/home/shell_aliases /home/$USER/.shell_aliases +ln -s $(pwd)/home/shell_funcs /home/$USER/.shell_funcs + +echo 'export PYENV_ROOT="/home/$USER/.pyenv"' >> /home/$USER/.bashrc +echo '[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"' >> /home/$USER/.bashrc +echo 'eval "$(pyenv init -)"' >> /home/$USER/.bashrc export PYENV_ROOT="$HOME/.pyenv" [[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"