diff options
| author | Andrew Guschin <saintruler@gmail.com> | 2020-10-03 12:24:03 +0400 |
|---|---|---|
| committer | Andrew Guschin <saintruler@gmail.com> | 2020-10-03 12:24:03 +0400 |
| commit | 23fa7e2c44ddbb9124728fa8e5ab885889b1e59a (patch) | |
| tree | d369fa29d6a1b065b2be39e02ce8e6bb706716ed | |
| parent | 3e5525c2918e5c2e08ee880e2a74415d18376060 (diff) | |
Removed autostart of tmux in zsh
| -rw-r--r-- | .config/zsh/.zshrc | 2 | ||||
| -rwxr-xr-x | .local/bin/statusbar/disk | 8 |
2 files changed, 3 insertions, 7 deletions
diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index ff4d0c9..711e943 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -41,4 +41,4 @@ alias dotdiff="/usr/bin/git --git-dir='$HOME/.dotfiles' --work-tree='$HOME' dif alias dotadd="/usr/bin/git --git-dir='$HOME/.dotfiles' --work-tree='$HOME' add -f" alias vim="nvim" -[[ -z "$TMUX" ]] && exec tmux +# [[ -z "$TMUX" ]] && exec tmux diff --git a/.local/bin/statusbar/disk b/.local/bin/statusbar/disk index 3e0f9ca..73bc07c 100755 --- a/.local/bin/statusbar/disk +++ b/.local/bin/statusbar/disk @@ -5,12 +5,8 @@ getDiskSpace () { } case $BLOCK_BUTTON in - 1) setsid -f "$TERMINAL" -e ncdu '/home/andrew' ;; + 1) setsid -f "$TERMINAL" -e ncdu "/home/$USER" ;; esac host=$(hostname -s) -if [ "$host" = "laptop1" ]; then - echo " /: $(getDiskSpace "/")" -else - echo " /home: $(getDiskSpace "/home")" -fi +echo " /home: $(getDiskSpace "/home")" |