mirror of
https://tildegit.org/ben/dotfiles.git
synced 2025-03-26 07:50:41 +00:00
fix cat and lg functions
This commit is contained in:
parent
c36c75cf85
commit
769a39b3a0
4
.gitmodules
vendored
4
.gitmodules
vendored
@ -1,6 +1,4 @@
|
||||
[submodule "fish/.config/fish/nvm-wrapper"]
|
||||
path = fish/.config/fish/nvm-wrapper
|
||||
url = https://github.com/passcod/nvm-fish-wrapper
|
||||
[submodule "vim/.spf13-vim"]
|
||||
path = vim/.spf13-vim
|
||||
url = https://github.com/spf13/spf13-vim
|
||||
|
||||
|
7
fish/.config/fish/functions/cat.fish
Normal file
7
fish/.config/fish/functions/cat.fish
Normal file
@ -0,0 +1,7 @@
|
||||
function cat
|
||||
if type -q bat >/dev/null
|
||||
bat $argv
|
||||
else
|
||||
command cat $argv
|
||||
end
|
||||
end
|
@ -1,4 +1,8 @@
|
||||
function lg
|
||||
lazygit $argv
|
||||
if type -q lazygit > /dev/null
|
||||
lazygit $argv
|
||||
else
|
||||
git status
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user