Browse Source

add func tmux_main still wip

pull/1/head
10sr 12 years ago
parent
commit
7f7fcfc887
1 changed files with 14 additions and 0 deletions
  1. +14
    -0
      bashrc

+ 14
- 0
bashrc View File

@@ -122,6 +122,7 @@ alias sh="ENV=$HOME/.shrc PS1=\$\ PROMPT_COMMAND="" sh"
alias mpg123="mpg123 -C -v --title" alias mpg123="mpg123 -C -v --title"
export PLAYER="mpg123 -C -v --title" export PLAYER="mpg123 -C -v --title"
alias screen="screen -e^z^z" alias screen="screen -e^z^z"
alias zcd="cd \`zenity --file-selection --directory\`"


alias pad=notepad alias pad=notepad
null type gedit && alias pad=gedit null type gedit && alias pad=gedit
@@ -182,6 +183,19 @@ then
|| complete -o default -o nospace -F _git g || complete -o default -o nospace -F _git g
fi fi


tmux_main(){
if tmux has -t main
then
if tmux lsc -t main
tmux new
else
tmux attach -t main
fi
else
tmux new -s main
fi
}

__my_moc_state(){ __my_moc_state(){
type mocp >/dev/null 2>&1 || return type mocp >/dev/null 2>&1 || return
test "`mocp -Q %state 2>/dev/null`" == PLAY || return test "`mocp -Q %state 2>/dev/null`" == PLAY || return


Loading…
Cancel
Save