-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Root cause of the .bashrc/.profile split: Its binary is located in ~/.local/bin, but that's added to the PATH in .profile _after_ it sources .bashrc (creating a Catch-22 with regards to properly activating it).
- Loading branch information
1 parent
74e9f28
commit d0867fa
Showing
2 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/usr/bin/env bash | ||
|
||
if command -v mcfly &> /dev/null; then | ||
|
||
export MCFLY_FUZZY=2 | ||
export MCFLY_RESULTS=$(($(tput lines) - 4)) | ||
export MCFLY_INTERFACE_VIEW=BOTTOM | ||
|
||
eval "$(mcfly init bash)" | ||
|
||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
|
||
arch=$(uname -m) | ||
base=https://github.com/cantino/mcfly/releases/download | ||
: "${version:=v0.8.4}" | ||
|
||
wget -nv -O- \ | ||
"${base}/${version}/mcfly-${version}-${arch}-unknown-linux-musl.tar.gz" | | ||
tar -xzv | ||
mv -f mcfly ~/.local/bin | ||
|
||
command -v mcfly && mcfly --version |