Skip to content

Commit

Permalink
Merge pull request #85 from sbulav/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
sbulav authored Jul 5, 2024
2 parents 813a570 + 52c932f commit d122a70
Show file tree
Hide file tree
Showing 30 changed files with 329 additions and 359 deletions.
27 changes: 2 additions & 25 deletions fish/functions/l.fish
Original file line number Diff line number Diff line change
@@ -1,26 +1,3 @@
# Change working dir in fish to last dir in lf on exit (adapted from ranger).
#
# You may put this file to a directory in $fish_function_path variable:
#
# mkdir -p ~/.config/fish/functions
# ln -s "/path/to/lfcd.fish" ~/.config/fish/functions
#
# You may also like to assign a key to this command:
#
# bind \co 'set old_tty (stty -g); stty sane; lfcd; stty $old_tty; commandline -f repaint'
#
# You may put this in a function called fish_user_key_bindings.

function l #--description 'lf with changing dir'
set tmp (mktemp)
lf -last-dir-path=$tmp $argv
if test -f "$tmp"
set dir (cat $tmp)
rm -f $tmp
if test -d "$dir"
if test "$dir" != (pwd)
cd $dir
end
end
end
function l --description 'alias l=ls -la'
la -la
end
Loading

0 comments on commit d122a70

Please sign in to comment.