We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2874a86 commit b877231Copy full SHA for b877231
1 file changed
source/50_editor.sh
@@ -3,12 +3,15 @@
3
if [[ ! "$SSH_TTY" && "$OSTYPE" =~ ^darwin ]]; then
4
export EDITOR='mate -w'
5
export LESSEDIT='mate -l %lm %f'
6
- alias q="mate"
+ alias q='mate'
7
else
8
- export EDITOR=$(type nano pico vi vim 2>/dev/null | sed "s/ .*$//;q")
+ export EDITOR=$(type nano pico vi vim 2>/dev/null | sed 's/ .*$//;q')
9
alias q="$EDITOR -w -z"
10
fi
11
12
export VISUAL="$EDITOR"
13
14
-alias qs="cd ~/.dotfiles && q ."
+function qs() {
15
+ pwd | perl -ne"s#^$(echo ~/.dotfiles)## && exit 1" && cd ~/.dotfiles
16
+ q ~/.dotfiles
17
+}
0 commit comments