Comments (14)
Hey, @MrMitch, thanks for the report. Could you do me a favor and attach some additional information like which shell you're running (with version), operating system, etc.? I'm unable to reproduce on OS X and Linux in zsh.
from desk.
I'm on Ubuntu 15.10, my shell is Bash (GNU bash, version 4.3.42(1)-release (x86_64-pc-linux-gnu)) and ~/.desk/desks
is a symlink to another folder. I've not set any $DESK_*
related var in my .bashrc
file, the only desk related lines in it are the following :
# Hook for desk activation
[ ! -z "$DESK_ENV" ] && source "$DESK_ENV"
source /home/mitch/bin/desk-src/shell_plugins/bash/desk
Hope this helps, feel free to ask anything more you might need.
from desk.
@MrMitch I'm curious: if you remove "$@"
from the end of this line: https://github.com/jamesob/desk/blob/master/desk#L105, does that resolve the issue?
from desk.
@jamesob no it doesn't, I still get the same message.
from desk.
Odd, okay. Two ideas:
- can you add
echo $SHELL_EXEC
to the line above to see what desk is actually trying to execute, and - can you use
git bisect
to find the commit that introduced this issue?
In the meantime, I'll try to recreate.
from desk.
I get :
mitch@mitchbox [(09fdbe4...)|BISECTING] git bisect good
803bf37847633e2f685a46a27b11facf22efebec is the first bad commit
from desk.
803bf37 has two parents, 15919e9 which is fine and 09fdbe4 which is also fine
from desk.
adding echo $SHELL_EXEC
prints a new empty line. It seems get_running_shell
has trouble detecting the shell I use. FYI, echo $SHELL
prints /bin/bash
from desk.
strange thing : I'm using Guake (0.7.2) as terminal. I went and tried desk
in Gnome Terminal and it works fine!
from desk.
complementary issue Guake/guake#677 filed
from desk.
Interesting... thanks for the opening the Guake issue. Happy to modify 803bf37#diff-b506e098cf253ce028b8ba0a5fc7d473R167 to get this to work for Guake.
from desk.
looking at the get_running_shell function, it seems that $CMDLINE_FILE
points to a file which content is -
, so because of the -e 's/^-//'
part on line 257, $CMDLINE_SHELL
is empty, which is why get_running_shell
returns an empty value, causing the command not found
message.
from desk.
Hey I found an issue related to this one. get_running_shell was returning 3182. Im using bash on OSX
"/usr/local/bin/desk: line 133: 3182: command not found"
Quick Fix:
local SHELL_EXEC="$(get_running_shell)"
local SHELL_EXEC="/bin/bash"
from desk.
I came across this issue with hyper.app
as a terminal. It worked fine in terminal.app
for me.
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.