swirepe / alwaysontop Goto Github PK
View Code? Open in Web Editor NEWKeep the input line at the top of the terminal
Home Page: swirepe.com
License: Other
Keep the input line at the top of the terminal
Home Page: swirepe.com
License: Other
Double tab
output (below prompt) does not force re-draw. This leads to confusing stuff if you have some output on the screen already.
I'm using a bash shell on mac (GNU bash, version 3.2.51(1)-release (x86_64-apple-darwin13)), and when I try to source the .sh I get "Sorry, only bash and zsh are supported."
Should this be OS agnostic?
I always get this after every command
bash: PROMPT_COMMAND: line 39: syntax error near unexpected token ;' bash: PROMPT_COMMAND: line 39:
update_terminal_cwd; ; _gototop_bash'
GNU bash, version 3.2.51(1)-release (x86_64-apple-darwin13)
I usually have a newline in prompt so I get all the info I need but have a clean line. This doesn't work with alwaysontop. Here's a normal terminal for me:
/tmp/tmp [yuval.g@myhostname ]
$ ls
bla
/tmp/tmp [yuval.g@myhostname ]
The result is that alwaysontop leaves the command I previously wrote at the top. For example this is the prompt state after I hit enter on echo 123
.
↑↑ ◎ /Users/yuval.g/Downloads [yuval.g@2030008314 ]
$ echo 123
123
The workaround is to use a single-line prompt but that's a bit of a bummer.
YELLOW="\[\033[33m\]"
RESET='\033[0m'
PS1="$YELLOW\$(pwd)$RESET $ "
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.