Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- alias h="cd /mnt/c/Users/$(cmd.exe /c "echo %USERNAME%" | sed -e 's/\r//g')"
- alias p="cd /mnt/c/Users/$(cmd.exe /c "echo %USERNAME%" | sed -e 's/\r//g')/Projects"
- alias r="cd /mnt/c"
- alias open='explorer.exe $(wslpath -w "$1")'
- alias n="explorer.exe 'shell:appsFolder\CanonicalGroupLimited.Ubuntu18.04onWindows_79rhkp1fndgsc!ubuntu1804'"
- function subl {
- SUBL="/mnt/c/Program Files/Sublime Text 3/sublime_text.exe"
- if [[ $# -eq 0 ]] ; then
- "$SUBL" -s
- else
- "$SUBL" -s "$(wslpath -w "$1")"
- fi
- }
- function smerge {
- SMERGE="/mnt/c/Program Files/Sublime Merge/sublime_merge.exe"
- if [[ $# -eq 0 ]] ; then
- "$SMERGE" -s
- else
- "$SMERGE" -s "$(wslpath -w "$1")"
- fi
- }
Add Comment
Please, Sign In to add comment