Add mkcd command

This commit is contained in:
Martin Larsson 2025-05-30 14:20:16 +02:00
parent 10a5f37df4
commit f7c7947f80

View file

@ -197,6 +197,11 @@ rmdf() {
rm -rf "$(fzfd)"
}
mkcd() {
local p=$1
mkdir -p $p && cd $p
}
# Check if tmux is already running or if the session is interactive
if [[ -z "$TMUX" ]] && [[ $- == *i* ]]; then
# Create a new tmux session, if one doesnt exist, give it the main name, never attach to a session