I think I have a pretty good developer env going on, but I’m always looking for more things I haven’t thought of.

So does anybody have any uber useful, or fun, or just a general favorite shell/terminal setup or tool?

6 points
*

Making a directory and then immediately navigating into it is such a common occurrence, eventually on stackoverflow I found this:

alias mkcd='{ IFS= read -r d && mkdir "$d" && cd "$d"; } <<<'
permalink
report
reply
5 points
*

A have it so that my shell always opens tmux, unless it’s a login shell or dumb shell.

# ~/.bashrc
## Top of your RC
[[ $- != *i* ]] && return          # If not running interactively, don't do anything
[ -z "$PS1" ] && return            # If not running interactively, don't do anything
[[ $TERM == dumb ]] && return      # If called from emacs, don't do anything

## Put the rest of your code here

## Bottom of RC
shopt -q login_shell && return       ## If this is a login shell, load all except tmux

if command -v tmux &> /dev/null && [ -n "$PS1" ] && [[ ! "$TERM" =~ screen ]] && [[ ! "$TERM" =~ tmux ]] && [ -z "$TMUX" ]; then
    tmux attach || exec tmux new-session 
fi

That way, I always have persistent terminal sessions and don’t need a terminal emulator that has tabs since I can just do multiplexing in tmux

permalink
report
reply
4 points

I have an alias venv, which checks if “./.venv” exists, and if not, creates a virtualenv there, and then activates it.

permalink
report
reply
2 points

Kitty’s builtin functions are pretty darn useful. I use the icat & ssh functions daily as well as the Unicode insert (tho I wish they would strip that ‘Nerd Font’ noise). Also still a long-time fan of fish’s completions.

permalink
report
reply
2 points
*

icat

I wish alacritty would just implement sixel already. I love the project but the dev can be hostile towards features that other terminals have had since years.

That being said, it’s his project, and he shouldn’t be bound to the whims of the fanbase

permalink
report
parent
reply
2 points

Would be nice, but sixel has some pretty obvious limitations Kitty tries to solve

permalink
report
parent
reply
1 point

that’s news to me, anywhere I can read some more on this?

permalink
report
parent
reply

Ask Programming

!askprogramming@lemmy.ml

Create post

Community stats

  • 21

    Monthly active users

  • 2

    Posts

  • 12

    Comments

Community moderators