File tree 2 files changed +6
-4
lines changed
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 1
1
bash_profile.ps1
2
- * .ignore
2
+ * .ignore
3
+ * .ignore.mjs
4
+ launch.json
Original file line number Diff line number Diff line change @@ -56,16 +56,16 @@ function convert(bash) {
56
56
// $d_diary='C:/Dev'
57
57
bash = bash . replace ( / e x p o r t ( \w + ) = ( [ ' " ] .* ?[ ' " ] ) / g, "$$$1=$2" ) ;
58
58
59
- // alias which does not contains variables
59
+ // alias which does not contains command or variables
60
60
// alias code='C:/Dev/VSCode/Code.exe'
61
61
// >>>
62
62
// Set-Alias -Name code -Value 'cd $d_diary'
63
63
bash = bash . replace (
64
- / a l i a s ( \w + ) = ( [ ' " ] [ ^ $ $ ] + ?[ ' " ] ) / g,
64
+ / a l i a s ( \w + ) = ( [ ' " ] (? ! \w { 1 , 4 } ) [ ^ $ $ ] + ?[ ' " ] ) / g,
65
65
"Set-Alias -Name $1 -Value $2"
66
66
) ;
67
67
68
- // ## alias which contains variables
68
+ // ## alias which contains command or variables
69
69
// alias cd_diary="cd $d_diary"
70
70
// >>>
71
71
// function cd_diary() { cd $d_diary }
You can’t perform that action at this time.
0 commit comments