aboutsummaryrefslogtreecommitdiffhomepage
path: root/alias
diff options
context:
space:
mode:
Diffstat (limited to 'alias')
-rw-r--r--alias9
1 files changed, 7 insertions, 2 deletions
diff --git a/alias b/alias
index 9765714..e7c6de3 100644
--- a/alias
+++ b/alias
@@ -5,7 +5,9 @@ alias al="$EDITOR $SETTING_DIR/alias && source $SETTING_DIR/alias"
5# SHELL {{{ 5# SHELL {{{
6 6
7alias eof='IGNOREEOF=10' 7alias eof='IGNOREEOF=10'
8path() { echo $PATH | tr : '\n' } # Should not use alias, because $PATH is not initialized 8path() {
9 echo $PATH | tr : '\n'
10}
9eval "${shell}rc(){ 11eval "${shell}rc(){
10 local RCFILE=$XDG_CONFIG_HOME/${shell}/.${shell}rc 12 local RCFILE=$XDG_CONFIG_HOME/${shell}/.${shell}rc
11 vim \$RCFILE && source \$RCFILE 13 vim \$RCFILE && source \$RCFILE
@@ -321,6 +323,9 @@ alias cdV='cd ~/Videos'
321alias cdM='cd ~/Music' 323alias cdM='cd ~/Music'
322alias x='xdg-open' 324alias x='xdg-open'
323alias ob.rc='vim ~/.config/openbox/rc.xml' 325alias ob.rc='vim ~/.config/openbox/rc.xml'
326desktop() {
327 $EDITOR ~/.local/share/applications/${1}.desktop
328}
324# }}} 329# }}}
325# EDITOR: VIM {{{ 330# EDITOR: VIM {{{
326alias editor='select-editor' 331alias editor='select-editor'
@@ -342,7 +347,7 @@ vll() { vim -c 'Telescope oldfiles'; }
342alias vS="vim -S /tmp/vim.session" 347alias vS="vim -S /tmp/vim.session"
343alias cdv='cd ~/.config/nvim' 348alias cdv='cd ~/.config/nvim'
344vs() { which $1 && vim $(which $1); } 349vs() { which $1 && vim $(which $1); }
345[ "$shell" = zsh ] && compdef vs=which 350[ ${0##*/} = 'zsh' ] && compdef vs=which
346alias vim.dos2unix="vim '+set ff=unix' '+x'" 351alias vim.dos2unix="vim '+set ff=unix' '+x'"
347vvv() { 352vvv() {
348 while true; do 353 while true; do