Comments (9)
Hello @Mugworth,
it runs once and then disappear
Seems to work for me, as in it displays /Users/gpakosz
which is the current directory when the shell command executes.
Can you please paste the output of this command from a tmux pane?
$ tmux show -gv status-left
BTW if you want to display the path of the current pane, you should rather do something like this:
tmux_conf_theme_status_left=" ❐ #S | #{pane_current_path} "
from .tmux.
$ tmux show -gv status-left
#[fg=#3f444a,bg=#88be65,bold] ❐ #S #[fg=#88be65,bg=#ebcb8b,none]#[fg=#1f2329,bg=#ebcb8b,none] #(cut -c3- "\\$TMUX_CONF_LOCAL" | sh -s cwd_path) #[fg=#ebcb8b,bg=#1f2329,none]
I wanted to format my cwd so that it shows ~ when path have home folder, so only pwd there is only for test.
from .tmux.
The output of tmux show -gv status-left
looks correct to me, and nothing explains the "it runs once and then disappear" part.
You can update your .local
customization file with this
...
tmux_conf_theme_status_left=" ❐ #S | #{pretty_path #{pane_current_path}} "
...
# # /!\ do not remove the following line
# EOF
#
# # /!\ do not "uncomment" the functions: the leading "# " characters are needed
#
# pretty_path() {
# cd "$1" && dirs +0
# }
...
# "$@"
# # /!\ do not remove the previous line
from .tmux.
Thanks for the feedback! Unfortunately, the same happens event with your snippet code:
$ tmux show -gv status-left
#[fg=#3f444a,bg=#88be65,bold] ❐ #S #[fg=#88be65,bg=#ebcb8b,none]#[fg=#1f2329,bg=#ebcb8b,none] #(cut -c3- "\\$TMUX_CONF_LOCAL" | sh -s pretty_path #{pane_current_path}) #[fg=#ebcb8b,bg=#1f2329,none]
I also tried using some of the custom variables already there, that is weather, and the same thing happens
from .tmux.
What do you mean by "the same thing happens"?
from .tmux.
After loading tmux bar module prints "~", but after let's say 1 second, "~" is disappearing like on the screenshots
And it's stays that way
The same thing applies to the weather module
Sorry, i should write it like so at the start of the this issue.
from .tmux.
After it has disappeared, could you please run the following from a tmux pane:
$ tmux show -gv status-left
And:
$ env | grep TMUX
from .tmux.
Also please try to disable your TPM plugins 1 by 1 and see if there's one that rewrites status-left
and introduces a bug
from .tmux.
Okay, as you said it was plugin, tmux-cpu to be exact.
i'm new to tmux so you were additionally helpful, thank you for your time!
from .tmux.
Related Issues (20)
- What is the recommended way to do theme customization? HOT 2
- When using {battery_vbar} or {battery_hbar}, the battery status display does not take effect. HOT 1
- Changing prefix to <C-s> works but <C-a> continues to be another prefix even after unbind HOT 1
- Question: Change bg color of status bar if prefix is active HOT 2
- unable to work with nvim-osc52 HOT 1
- .tmux.conf is ignored HOT 1
- ${TERM} always set to tmux-256color, how to change it HOT 4
- Fail to minimize back to original window/pane HOT 1
- Suggestion for keybinds HOT 2
- Statusline broken after update HOT 1
- I had some problems during the installation process
- The shortcut keys set using ohmytmux take effect, but the style is still the default style. HOT 14
- Unable to get this to work at all, using .config and migrating from dracula/snazzy (OSX Sonoma 14.4.1 M3) HOT 2
- Plugin setup and configuration is entirely skipped HOT 20
- Command prompt position -- don't hide status line HOT 4
- Can't get status line to update HOT 2
- Command `<prefix> e` is not opening `.tmux.conf.local` HOT 7
- How to enable copy from system clipboard in mouse mode (Mobaxterm)
- small arraw symbol in macos terminal app HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from .tmux.