---
title: "Discussion on \"If Tmux\" | Hashnode"
description: "Discussion on \"If Tmux\". I do much of my work from tmux, I love it so much that I want to setup some functionality that puts me in tmux even if I didnt ask for it.\nBash Function\nBash function to check if the shell is in a tmux session.\nin_tmux () {\n  if [ -n \"$TMUX\" ]; then\n..."
url: "https://hashnode.com/posts/if-tmux/5ff9e08daa5c467fe1558b0e"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [If Tmux](https://h.waylonwalker.com/if-tmux?utm_source=hashnode&utm_medium=feed)

I do much of my work from tmux, I love it so much that I want to setup some functionality that puts me in tmux even if I didnt ask for it. Bash Function Bash function to check if the shell is in a tmux session. in\_tmux () { if \[ -n "$TMUX" \]; then ...

Jan 9, 2021 · 2 min read · h.waylonwalker.com  
Read the article

-   [#linux](https://hashnode.com/tag/linux)
-   [#cli](https://hashnode.com/tag/cli)
-   [#command-line](https://hashnode.com/tag/command-line)
-   [#bash](https://hashnode.com/tag/bash)

## Written by

[Waylon Walker](https://hashnode.com/@waylonwalker)

@waylonwalker · Illinois, United States

  
[View profile](https://hashnode.com/@waylonwalker)

Data scientist

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
