refactoring and minor updates
This commit is contained in:
parent
83f072dac2
commit
14ff6a7a25
7 changed files with 43 additions and 27 deletions
6
modules/home/shell-conf/fish/functions/git-fake.fish
Normal file
6
modules/home/shell-conf/fish/functions/git-fake.fish
Normal file
|
@ -0,0 +1,6 @@
|
|||
#!/usr/bin/env fish
|
||||
|
||||
function git-fake --description 'add file to repo without actually adding it (for nix flake needs)'
|
||||
git add --intent-to-add $argv
|
||||
git update-index --skip-worktree --assume-unchanged $argv
|
||||
end
|
|
@ -1,3 +1,3 @@
|
|||
function lla --wraps='eza -la' --description 'alias lla eza -la'
|
||||
eza -la $argv
|
||||
function lla --wraps='ls' --description 'alias lla eza -la'
|
||||
ls -la $argv
|
||||
end
|
||||
|
|
|
@ -1,7 +1,3 @@
|
|||
function ls --wraps=eza --description 'eza instead of ls'
|
||||
if type --quiet eza
|
||||
eza --git --header --icons $argv
|
||||
else
|
||||
command ls --color=auto $argv
|
||||
end
|
||||
eza --git --header --icons $argv
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue