feat: get lf working
This commit is contained in:
parent
d8ab048b10
commit
759d7b61ea
|
@ -12,6 +12,6 @@ sudo apt install git
|
||||||
# git config --global user.name "NunoSempere"
|
# git config --global user.name "NunoSempere"
|
||||||
# git config --global init.defaultBranch master
|
# git config --global init.defaultBranch master
|
||||||
|
|
||||||
cd ~/Documents
|
|
||||||
git clone https://git.nunosempere.com/open.source/nunOS.git
|
git clone https://git.nunosempere.com/open.source/nunOS.git
|
||||||
cd nunOS
|
cd nunOS
|
||||||
|
|
||||||
|
|
3
config/bash/bashrc
Normal file
3
config/bash/bashrc
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
dir=~/.config/bash
|
||||||
|
|
||||||
|
source $dir/shadows.sh
|
|
@ -4,7 +4,7 @@ function tmux(){
|
||||||
|
|
||||||
function lf() {
|
function lf() {
|
||||||
tmp="$(mktemp)"
|
tmp="$(mktemp)"
|
||||||
lf0 -last-dir-path="$tmp" "$@" --command "set hidden"
|
/usr/bin/lf -last-dir-path="$tmp" "$@" --command "set hidden"
|
||||||
if [ -f "$tmp" ]; then
|
if [ -f "$tmp" ]; then
|
||||||
dir="$(cat "$tmp")"
|
dir="$(cat "$tmp")"
|
||||||
rm -f "$tmp"
|
rm -f "$tmp"
|
||||||
|
|
3
packages/1-bash.sh
Normal file
3
packages/1-bash.sh
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/bash
|
||||||
|
echo "source ~/.config/bash/bashrc" >> ~/.bashrc
|
||||||
|
|
1
packages/2-lf.sh
Normal file
1
packages/2-lf.sh
Normal file
|
@ -0,0 +1 @@
|
||||||
|
sudo apt install lf
|
|
@ -1 +0,0 @@
|
||||||
echo "source ~/.config/bash/.bashrc" >> "~/.bashrc"
|
|
Loading…
Reference in New Issue
Block a user