feat: get lf working

This commit is contained in:
NunoSempere 2023-11-14 15:58:59 +00:00
parent d8ab048b10
commit 759d7b61ea
8 changed files with 10 additions and 3 deletions

View File

@ -12,6 +12,6 @@ sudo apt install git
# git config --global user.name "NunoSempere"
# git config --global init.defaultBranch master
cd ~/Documents
git clone https://git.nunosempere.com/open.source/nunOS.git
cd nunOS

1
config.sh Normal file
View File

@ -0,0 +1 @@
cp -a config/. ~/.config

3
config/bash/bashrc Normal file
View File

@ -0,0 +1,3 @@
dir=~/.config/bash
source $dir/shadows.sh

View File

@ -4,7 +4,7 @@ function tmux(){
function lf() {
tmp="$(mktemp)"
lf0 -last-dir-path="$tmp" "$@" --command "set hidden"
/usr/bin/lf -last-dir-path="$tmp" "$@" --command "set hidden"
if [ -f "$tmp" ]; then
dir="$(cat "$tmp")"
rm -f "$tmp"

3
packages/1-bash.sh Normal file
View File

@ -0,0 +1,3 @@
#!/bin/bash
echo "source ~/.config/bash/bashrc" >> ~/.bashrc

1
packages/2-lf.sh Normal file
View File

@ -0,0 +1 @@
sudo apt install lf

View File

@ -1 +0,0 @@
echo "source ~/.config/bash/.bashrc" >> "~/.bashrc"