Comments (11)
We do load up the bashrc and check for aliases:
https://github.com/facebook/PathPicker/blob/master/src/output.py#L109
Is something else not working? What format are you aliases in?
(closing for now, open up again if you have a solid repro)
from pathpicker.
I have a ll
alias to do ls -l
it didn't work...
On Thu, May 7, 2015 at 6:17 PM, Peter Cottle [email protected]
wrote:
We do load up the bashrc and check for aliases:
https://github.com/facebook/PathPicker/blob/master/src/output.py#L109
Is something else not working? What format are you aliases in?
(closing for now, open up again if you have a solid repro)
—
Reply to this email directly or view it on GitHub
#34 (comment).
from pathpicker.
I can repro this. I have source $HOME/.bash_aliases
in my .bashrc and in .bash_aliases I have alias g="git "
Go to a git repository, and enter:
touch foo.txt
ls -l ./foo.txt | fpp
then press c and enter g add
I get the error: /home/sgoder/.fbPager.sh: line 4: g: command not found
from pathpicker.
I have source $HOME/.bash_aliases in my .bashrc and in .bash_aliases I have alias g="git "
yeah unfortunately we don't do recursive follows / sources :*( do either of you know if we could get bash to either:
- give us the expanded format of a given alias
or even - give us the entire concat of the bashrc file
?
let me try this inside the command script instead...
from pathpicker.
@pcottle Can't you just use alias
?
from pathpicker.
@shaneharter alias
does not work inside shell scripts:
[pcottle:~/Desktop:]$ alias | wc -l
54
[pcottle:~/Desktop:]$ echo "alias; echo 'alias is'; alias | wc -l" > ./test.sh
[pcottle:~/Desktop:]$ sh ./test.sh
alias is
0
unless you run with some weird mode, but that doesnt work for zsh
from pathpicker.
@pcottle Yeah i saw that after, sorry for the distraction :) Been using fpp for a few days now, 👍
from pathpicker.
Is there a way to prevent it from sourcing my .zshrc? My .zshrc prints something every time it is executed and that can get annoying if I'm not starting up a new shell.
from pathpicker.
I somewhat have this issue as well, but I have a global flag to toggle it off. Basically I automatically ssh to my devserver at facebook unless I set a "local mode" flag
What does yours do? We could add (yet another) environment variable for this but I'm curious what the use case is.
from pathpicker.
Oh yeah that's smart, thanks. Haha I just have this line in my .zshrc: fortune | cowsay | lolcat
So I get a random fortune every time I start a new shell.
from pathpicker.
Haha, maybe I should do something similar. Terminal startups should be more fun!
From: Addison Bean <[email protected]mailto:[email protected]>
Reply-To: facebook/PathPicker <[email protected]mailto:[email protected]>
Date: Wednesday, June 1, 2016 at 3:59 PM
To: facebook/PathPicker <[email protected]mailto:[email protected]>
Cc: Peter Cottle <[email protected]mailto:[email protected]>, Mention <[email protected]mailto:[email protected]>
Subject: Re: [facebook/PathPicker] BashRC (#34)
Oh yeah that's smart, thanks. Haha I just have this line in my .zshrc: fortune | cowsay | lolcat So I get a random fortune every time I start a new shell.
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com//issues/34#issuecomment-223150007, or mute the threadhttps://github.com/notifications/unsubscribe/ABFRn2hnIoZp3_zf_fiK0W585Q4VqYUDks5qHg7pgaJpZM4ETK3G.
from pathpicker.
Related Issues (20)
- Allow configuring keyboard controls
- Command mode is broken in latest master HOT 1
- fpp-git on AUR is quite outdated HOT 2
- Feature Request: Make man page easier to read, put each flag in its own line. HOT 5
- Filename within `#` cannot be pick
- The way of determining shell is not reliable.
- Demo videos in homepage not loading on mobile HOT 2
- Issue and PR templates HOT 2
- Skip the `F` key in quick select mode
- Problems with paths with spaces in them
- New release before EOY? HOT 6
- Support for git diffs
- Standalone Executable File
- fpp not opening files in $EDITOR HOT 7
- Infinite loop when selecting entry with certain width relative to window width HOT 1
- Release 0.9.5 but fpp --version says 0.9.2 HOT 1
- feature request: open files in vim tab pages
- chore: use pre-commit hook
- ci: update versions and add `paths-ignore`
- macOS Python segfault 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 pathpicker.