Comments (3)
The ~
is actually %~
. According to the zsh prompt expansion documentation, you want %1~
to get the basename.
Also, you cannot use '
around PS1. In general, you want to use "
around your shell variables.
from dotfiles.
@mike-burns I tried changed changing the ~
on line 20 of zlogin
to use basename pwd
a few different ways but was seeing some weird behavior. Any hints? Having a hard time reading that line, too. Would be cool to break it apart into named pieces if possible.
from dotfiles.
Niiiice. Thanks, Mike. $1~
worked beautifully. Thanks for the zsh
prompt expansion documentation.
I think the inner "
is why the '
is being used. Switching the outer to "
and inner to '
resulted in a funky effect.
from dotfiles.
Related Issues (20)
- gitignore.local being ignored? HOT 2
- zshrc line 12 syntax error? HOT 1
- `git up` now rebases against `master` and not `origin/master` HOT 2
- Ctags warnings HOT 7
- fzf moves the cursor in Vim HOT 2
- The default post-checkout git hook breaks git clone
- New location for fzf under macOS with ARM architecture HOT 1
- Do not override :Ag command
- This is shit. HOT 1
- Vim configuration is opinionated and does not provide any opt-out HOT 1
- Weird text when I open vim HOT 2
- Outdated gitconfig explanation in README? HOT 2
- `/vendor` in `.gitignore` breaks Rails 7 deploys
- What's the recommended way to add binaries to $PATH? HOT 2
- zsh profile not fully loading on terminal startup (iTerm2 + Monterrey) HOT 5
- Error detected while processing /home/samuelodan/.vimrc: (E121: Undefined variable: g:has_async) HOT 3
- X
- Python3 os.getenv Failed to Gather Environment Variable During Runtime
- Option-Arrow on a command prompt prevents text from being edited/deleted
- Sourcing asdf has broken the zsh 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 dotfiles.