Skip to content

Commit ca872ed

Browse files
committed
chore: update zsh functions
1 parent b6872f6 commit ca872ed

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

config/zsh/functions.zsh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ function tmp() {
1212
fi
1313
mkdir -p ~/tmp/"$name" && cd "$_"
1414
;;
15+
ls)
16+
ls ~/tmp "$@"
17+
;;
1518
cd)
1619
local dir
1720
dir=$(ls ~/tmp | fzf --reverse)
@@ -22,6 +25,7 @@ function tmp() {
2225
echo ""
2326
echo "commands:"
2427
echo " new <name> Create a new tmp project and cd into it"
28+
echo " ls List tmp projects"
2529
echo " cd Select and cd into a tmp project"
2630
return 1
2731
;;
@@ -34,7 +38,7 @@ function repo() {
3438
shift 2>/dev/null
3539

3640
case $cmd in
37-
list)
41+
ls)
3842
ghq list "$@"
3943
;;
4044
cd)
@@ -46,7 +50,7 @@ function repo() {
4650
echo "usage: repo <command>"
4751
echo ""
4852
echo "commands:"
49-
echo " list List repositories"
53+
echo " ls List repositories"
5054
echo " cd Select and cd into a repository"
5155
return 1
5256
;;

0 commit comments

Comments
 (0)