fish: functions: Add aliases for ls/exa and mkdir
This commit is contained in:
parent
5111831300
commit
e661dded6c
4 changed files with 15 additions and 0 deletions
3
fish/.config/fish/functions/l.fish
Normal file
3
fish/.config/fish/functions/l.fish
Normal file
|
@ -0,0 +1,3 @@
|
|||
function l -w exa
|
||||
exa -lh $argv
|
||||
end
|
3
fish/.config/fish/functions/ll.fish
Normal file
3
fish/.config/fish/functions/ll.fish
Normal file
|
@ -0,0 +1,3 @@
|
|||
function ll -w exa
|
||||
exa -lah $argv
|
||||
end
|
6
fish/.config/fish/functions/mkdcd.fish
Normal file
6
fish/.config/fish/functions/mkdcd.fish
Normal file
|
@ -0,0 +1,6 @@
|
|||
function mkdcd -d "Create a new directory and immediately cd into it"
|
||||
mkdir -p -- $argv
|
||||
if test $status = 0
|
||||
cd $argv
|
||||
end
|
||||
end
|
3
fish/.config/fish/functions/mkdir.fish
Normal file
3
fish/.config/fish/functions/mkdir.fish
Normal file
|
@ -0,0 +1,3 @@
|
|||
function mkdir
|
||||
command mkdir -p $argv
|
||||
end
|
Loading…
Reference in a new issue