Browse Source

.bashrc: disable C-s in terminal

pull/1/head
10sr 13 years ago
parent
commit
3da5a055c0
1 changed files with 6 additions and 4 deletions
  1. +6
    -4
      .bashrc

+ 6
- 4
.bashrc View File

@@ -5,6 +5,9 @@
########################################## ##########################################
test -r /etc/bashrc && . /etc/bashrc test -r /etc/bashrc && . /etc/bashrc


safe-cmd(){
type $1 >/dev/null 2>&1 && "$@"
}
# export PS1="\[\e[32m\]\u@\H \[\e[33m\]\w\[\e[0m\] \d \t\n\s \# \j \$ " # export PS1="\[\e[32m\]\u@\H \[\e[33m\]\w\[\e[0m\] \d \t\n\s \# \j \$ "
# export PS1="[\[\e[33m\]\w\[\e[0m\]]\n\[\e[32m\]\u@\H\[\e[0m\] \d \t \s.\v\nhist:\# jobs:\j \$ " # export PS1="[\[\e[33m\]\w\[\e[0m\]]\n\[\e[32m\]\u@\H\[\e[0m\] \d \t \s.\v\nhist:\# jobs:\j \$ "
export PS1="\$(prompt_function)\$ " export PS1="\$(prompt_function)\$ "
@@ -33,7 +36,8 @@ alias la="ls -A"
alias lla="ls -Al" alias lla="ls -Al"
alias vl=/usr/share/vim/vimcurrent/macros/less.sh alias vl=/usr/share/vim/vimcurrent/macros/less.sh
alias emacs="emacs -nw" alias emacs="emacs -nw"
alias aptin="sudo apt-get install"
alias apt-get="sudo apt-get"
alias aptin="apt-get install"
alias aptsearch="apt-cache search" alias aptsearch="apt-cache search"
alias ut="slogin t110414@un001.ecc.u-tokyo.ac.jp" alias ut="slogin t110414@un001.ecc.u-tokyo.ac.jp"
alias rand="echo \$RANDOM" alias rand="echo \$RANDOM"
@@ -73,9 +77,6 @@ p(){
c(){ c(){
"$@" | cat "$@" | cat
} }
safe-cmd(){
type $1 >/dev/null 2>&1 && "$@"
}
o(){ o(){
if [ $# -eq 0 ]; then if [ $# -eq 0 ]; then
local f=. local f=.
@@ -222,6 +223,7 @@ _echocolors(){
"\e[0m" "\e[0m"
} }


safe-cmd stty stop undef # unbind C-s to stop displaying output


########################## ##########################
# system type # system type


Loading…
Cancel
Save