FISH: Configuration pour ce nouveau SHELL (en cours de test)
This commit is contained in:
24
.config/fish/functions/wd.fish
Normal file
24
.config/fish/functions/wd.fish
Normal file
@ -0,0 +1,24 @@
|
||||
#!/usr/bin/fish
|
||||
#
|
||||
# ▄▄▌ ▐ ▄▌·▄▄▄▄
|
||||
# ██· █▌▐███▪ ██
|
||||
# ██▪▐█▐▐▌▐█· ▐█▌
|
||||
# ▐█▌██▐█▌██. ██
|
||||
# ▀▀▀▀ ▀▪▀▀▀▀▀•
|
||||
#
|
||||
# wrapper for: fish
|
||||
#
|
||||
# place in:
|
||||
# ~/.config/fish/functions/wd.fish
|
||||
#
|
||||
# @github.com/mfaerevaag/wd-c
|
||||
|
||||
function wd -d 'warp directory'
|
||||
if set output (_wd $argv)
|
||||
cd $output
|
||||
else
|
||||
for line in $output
|
||||
echo $line
|
||||
end
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user