diff --git a/bin/bin/edit-in-vim.sh b/bin/bin/edit-in-vim.sh index 7ed7e6c..c5cb804 100755 --- a/bin/bin/edit-in-vim.sh +++ b/bin/bin/edit-in-vim.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Edit text fields in Neovim by selecting and copy the text followed by # triggering a shortcut to run this script. diff --git a/bin/bin/snippets.sh b/bin/bin/snippets.sh index f7fd9d5..e00a405 100755 --- a/bin/bin/snippets.sh +++ b/bin/bin/snippets.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Snippet tool that adds text from either script output or plain files to the # clipboard and pastes it with Shift+Insert. @@ -8,7 +8,7 @@ # # Example of a executable snippet: # -# #!/bin/sh +# #!/usr/bin/env sh # printf '%s' "$(date '+%F')" set -e diff --git a/bin/bin/start-clangd.sh b/bin/bin/start-clangd.sh index ff364b7..e1b8529 100755 --- a/bin/bin/start-clangd.sh +++ b/bin/bin/start-clangd.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash CLANGD="$HOME/.local/share/nvim/lsp_servers/clangd/clangd/bin/clangd" PORT=4444 diff --git a/bin/bin/weather.sh b/bin/bin/weather.sh index d7bc844..0f35e43 100755 --- a/bin/bin/weather.sh +++ b/bin/bin/weather.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash { response=$(/usr/bin/curl --silent --fail --connect-timeout 3 "wttr.in/Jonkoping?format=%C+%t") diff --git a/bootstrap.sh b/bootstrap.sh index 0fd7d6d..529c55d 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -ex diff --git a/nvim/.config/nvim/lua/custom/lazy/dap.lua b/nvim/.config/nvim/lua/custom/lazy/dap.lua index 0f806db..e836f93 100644 --- a/nvim/.config/nvim/lua/custom/lazy/dap.lua +++ b/nvim/.config/nvim/lua/custom/lazy/dap.lua @@ -29,7 +29,7 @@ return { dap.adapters.python = { type = "executable", - command = "/usr/bin/python3", --'path/to/virtualenvs/debugpy/bin/python' + command = "/usr/bin/env python3", --'path/to/virtualenvs/debugpy/bin/python' args = { "-m", "debugpy.adapter" }, } dap.configurations.python = { @@ -50,7 +50,7 @@ return { elseif vim.fn.executable(cwd .. "/.venv/bin/python3") == 1 then return cwd .. "/.venv/bin/python3" else - return "/usr/bin/python3" + return "/usr/bin/env python3" end end, }, diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf index 88c73e7..1a9f0d2 100644 --- a/tmux/.tmux.conf +++ b/tmux/.tmux.conf @@ -8,7 +8,7 @@ unbind-key C-b set-option -g prefix C-a bind-key C-a send-prefix -set-option -g default-command /bin/zsh +set-option -g default-command "/usr/bin/env zsh" # History buffer limit. Default 2000 set-option -g history-limit 100000