We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b82a8d0 commit 9e4b91bCopy full SHA for 9e4b91b
1 file changed
zsh/.config/zsh/functions
@@ -90,8 +90,10 @@ q() {
90
91
m() {
92
r >/dev/null
93
+
94
+ trap popd>/dev/null 1 2 3 6
95
96
if [ ! -d .mscripts ]; then
- popd >/dev/null
97
echo "Unable to find .mscripts" && return 1
98
fi
99
script="$1"
@@ -100,22 +102,21 @@ m() {
100
102
101
103
if [ -z "$mscript" ]; then
104
echo "No mscript avaialble for $script"
105
return 1
106
107
108
eval .mscripts/"$mscript" $*
109
}
110
111
mm() {
112
113
114
115
if [ ! -f .mscripts/default ]; then
116
echo "Unable to find default mscript" && return 1
117
118
119
.mscripts/default "$@"
120
121
122
# python venv setup (need to be function as we have to source)
0 commit comments