whatports

This commit is contained in:
Tyrel Souza 2024-11-01 14:52:50 -04:00
parent 8093c6ac9f
commit 7179ca34b5
Signed by: tyrel
GPG Key ID: A7042C28F86F5183
6 changed files with 299 additions and 211 deletions

3
home/bin/what_ports Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
sudo lsof -iTCP -sTCP:LISTEN -n -P | awk 'NR>1 {print $9, $1, $2}' | sed 's/.*://' | while read port process pid; do echo "Port $port: $(ps -p $pid -o command= | sed 's/^-//') (PID: $pid)"; done | sort -n

View File

@ -1,3 +1,5 @@
vim.env.PATH = vim.env.HOME .. "/.local/share/mise/shims:" .. vim.env.PATH
require("settings_before") require("settings_before")
vim.g.python3_host_prog = '/opt/nvimpython/.nvim.pythonenv/bin/python3' vim.g.python3_host_prog = '/opt/nvimpython/.nvim.pythonenv/bin/python3'
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"

View File

@ -41,6 +41,7 @@ config.set_environment_variables = {
config.harfbuzz_features = { 'calt=0', 'clig=0', 'liga=0' } config.harfbuzz_features = { 'calt=0', 'clig=0', 'liga=0' }
config.color_scheme = 'Jellybeans (Gogh)' config.color_scheme = 'Jellybeans (Gogh)'
config.font = wezterm.font_with_fallback { 'IosevkaTerm Nerd Font' } config.font = wezterm.font_with_fallback { 'IosevkaTerm Nerd Font' }
-- config.font = wezterm.font_with_fallback { 'DepartureMono' }
config.font_size = 15 config.font_size = 15
config.hide_tab_bar_if_only_one_tab = true config.hide_tab_bar_if_only_one_tab = true
config.window_decorations = 'RESIZE' config.window_decorations = 'RESIZE'

File diff suppressed because it is too large Load Diff

View File

@ -14,3 +14,4 @@ alias vim=nvim
alias vimini="vim ~/.config/nvim/init.vim" alias vimini="vim ~/.config/nvim/init.vim"
alias wx="curl https://wttr.in/Raleigh" alias wx="curl https://wttr.in/Raleigh"
alias tf0="tail -n0 -f" alias tf0="tail -n0 -f"
alias listports=sudo lsof -iTCP -sTCP:LISTEN -n -P | awk 'NR>1 {print $9, $1, $2}' | sed 's/.*://' | while read port process pid; do echo "Port $port: $(ps -p $pid -o command= | sed 's/^-//') (PID: $pid)"; done | sort -n

View File

@ -2,7 +2,4 @@ source ~/.shell_funcs
source ~/.shell_aliases source ~/.shell_aliases
source ~/.shell_exports source ~/.shell_exports
command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
eval "$(direnv hook zsh)" eval "$(direnv hook zsh)"