Comments (8)
Hey Marty, thanks for the issue. Thanks to @rnewton and #14, this is pretty easy -- just include ${DESK_NAME}
somewhere in your prompt.
For example (using oh-my-zsh
), I do
PROMPT=' [%w %T] %B%{$fg[blue]%}%3d%{$reset_color%} $(git_prompt_info) $(git_prompt_status)$(git_prompt_ahead)%{$reset_color%}${DESK_NAME}
$ '
Does that help?
Maybe we should update the README with some of this info.
from desk.
Okay ! it works ! I'm using iTerm + zsh + oh-my-zsh + Agnoster, and I found a way to add a "segment" in the prompt when we are in a desk.
If anybody is interested in it, I can give the instructions to get it.
from desk.
Nice @martylamoureux! Maybe we can spin up a wiki page or something.
from desk.
This is great @martylamoureux! Please share the instructions for this.
from desk.
If anybody need this, here is my Agnoster modified theme with Desk integration (and some more goodies)
from desk.
I also played around with this today and made a simple zsh theme (based on robbyrussell
), you can see it here: https://github.com/mosic/dotfiles/blob/master/zsh/themes/mosic.zsh-theme
It looks like this:
Using ◲ in the prompt looks great, thanks for the idea.
from desk.
@mosic beautiful, thanks.
from desk.
For anyone using powerline9k this is the correct way to use it:
# DESK INTEGRATION
prompt_desk() {
if [ ! -z "${DESK_NAME// }" ]; then
"$1_prompt_segment" "$0" "$2" "red" "grey" "$POWERLEVEL9K_DESK_ICON $DESK_NAME" "#"
fi
}
POWERLEVEL9K_DESK_BACKGROUND="black"
POWERLEVEL9K_DESK_FOREGROUND="white"
POWERLEVEL9K_DESK_ICON='\uf1d8'
from desk.
Related Issues (20)
- Desk release v0.5.0 HOT 5
- #62 broke desk within tmux HOT 1
- not really an issue - HOT 1
- Prevent nested session HOT 3
- Ability to run a clean up script when exiting a desk session HOT 2
- desk installed from homebrew only lauches shell, doesn't execute deskfile HOT 6
- cmd_current which calls cmd_list doesn't print newline after showing desks. HOT 1
- desk doesn't seem to execute desk file at all HOT 1
- I ❤️ DESK! HOT 2
- autoreload desk on save.
- is there a way to start new terminal session with previous used desk session? HOT 2
- IntelliJ (phpstorm) error on desk open. HOT 1
- Having separate bash histories per desk? HOT 1
- Use of `sh -i` in desk run causes process suspension in pipelines HOT 2
- `get_running_shell` picks not-a-shell sometimes HOT 1
- `desk run` requires excessive escaping and silently discards additional arguments
- Description of aliases and functions are being duplicated
- Desk init does not work when using a custom location
- You can install desk with Awesome package manager
- desk fails to run when using warp terminal
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 desk.