分享

VIM快捷操作

 charlie_linux 2020-08-30

###############################################################

以下是VIM快捷操作

##############################################################

/zhsa012/usrhome/

.vimrc

.zshrc

.vim -Rf

.oh-my-zsh -Rf

######################

单独安装,进入工程的根目录

1. find $PWD -name "*.h" -o -name "*.c" -o -name "*.cpp" -o -name "*.py" > cscope.files

2. cscope -bkq -i cscope.files

3. vim . 然后直接输入 :cs add ~/.cscope/my_test_cscope/cscope.out

########################

脚本

1. ./../mkcscope $PWD my_test_cscope

2. :cs add ~/.cscope/my_test_cscope

##############################################################

1. vim的准备

 首先 vim --version | grpe cscope,看看vim是否支持cscope,如果不支持需要重新安装vim。

 最简单的是在./configure 后加上-enable-cscope,

 当然可以在Makefile文件(./src/Makefile)中修改(把原来的注释去掉),这是最根本的:

CONF_OPT_CSCOPE = --enable-cscope

然后安装:make && make install

######################################################

:cs add ~/.cscope/my_test_cscope/cscope.out

使用cscope前,必须为代码生成一个cscope数据库。假设当前代码在/usr/src/linux目录下,则运行下列命令。

cd /usr/src/linux

cscope –Rbq

  然后会生成3个文件:cscope.in.out,cscope.out,cscope.po.out。

  用vim打开代码文件,将刚才生成的cscope文件导入到vim中。

vim init/main.c

:cs add /usr/src/linux/cscope.out /usr/src/linux

  也可以将下面语句添加到vim的配置文件.vimrc中。

if fileradable("cscope.out")

    cs add csope.out

elseif $CSCOPE_DB  != ""

    cs add $CSCOPE_DB

endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

./../mkcscope $PWD my_test_cscope

:cs add ~/.cscope/my_test_cscope/cscope.out

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 

下面两步

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

./../mkcscope $PWD my_test_cscope //建立数据库

:cs add ~/.cscope/my_test_cscope  //加载数据库

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 

#################################################################

:cs help

cscope commands:

add  : Add a new database             (Usage: add file|dir [pre-path] [flags])

find : Query for a pattern            (Usage: find c|d|e|f|g|i|s|t name)

       c: Find functions calling this function

       d: Find functions called by this function

       e: Find this egrep pattern

       f: Find this file

       g: Find this definition

       i: Find files #including this file

       s: Find this C symbol

       t: Find assignments to

help : Show this message              (Usage: help)

kill : Kill a connection              (Usage: kill #)

reset: Reinit all connections         (Usage: reset)

show : Show connections               (Usage: show)

s: 查找C语言符号,即查找函数名、宏、枚举值等出现的地方

g: 查找函数、宏、枚举等定义的位置,类似ctags所提供的功能

d: 查找本函数调用的函数

c: 查找调用本函数的函数

t: 查找指定的字符串

e: 查找egrep模式,相当于egrep功能,但查找速度快多了

f: 查找并打开文件,类似vim的find功能

i: 查找包含本文件的文

############################################

#################################################

################【相关快捷键的命令 集合】#######################

#################################################

##################################################

#############################################

查看 cygwin gcc 版本命令

sde-gcc.exe -v

1.cygwin 下面编译:aliboot teeboot seeboot 

Reading specs from /mips-sde/bin/../lib/gcc/sde/3.4.4/specs

gcc version 3.4.4 mipssde-6.06.01-20070420

2.linux 编译:aliboot teeboot seeboot 

mips-sde-elf-4.7.3

#################################

Ctrl+u和Ctrl+d是上下翻半页

【ctrl+小L】清除当前屏幕,相当于翻页。

zsh <--->exit 目录结构相互切换

【z+R】清除当前文件的折叠。

【空格+cc】删除当前光标位置的窗口。

【ctrl+w】j,k上下窗口跳。

【9+f】9+f在所在的编辑文件中打开上次打开文件的列表。

【ctrl+}】回跳到函数定义的地方。

【ctrl+o】回跳到上次的位置。

vim .然后输入 1 f 文件名

:buffers 列出最近打开的文件,然后冒号:文件行数

: b17

:b# 打开上次编辑的文件

e ~xxx 打开一个文件

@@@@@@@@@@@@@@@@@@@@@@@@@@@@

shift + * 向后搜索光标所在位置的单词

shift + # 向前搜索光标所在位置的单词

n和N可以继续向后或者向前搜索匹配的字符串

vim自动补全 ctrl + n 

--->把光标停留在 要选择单词开始的位置,然后ctrl + n ,自动补齐选择这个单词,再按y进行复制,p就可以进行粘帖了

--->把光标停留在 要选择单词开始的位置,然后ctrl + n ,自动补齐选择这个单词,再按d进行删除了

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

8、复制vim文件中所有内容

gg 回到文件首

shift + v 进入VISUAL LINE模式

shift + g 全选所有内容

ctrl + insert 复制所选的内容

按v进入可视化界面,然后通过左右键选择文本,再按y进行复制,p就可以进行粘帖了

多行注释:

1. 进入命令行模式,按ctrl + v进入 visual block模式,然后按j, 或者k选中多行,把需要注释的行标记起来

2. 按大写字母I,再插入注释符,例如//

3. 按esc键就会全部注释了

取消多行注释:

1. 进入命令行模式,按ctrl + v进入 visual block模式,按字母l横向选中列的个数,例如 // 需要选中2列

2. 按字母j,或者k选中注释符号

3. 按d键就可全部取消注释

C:\Users\charlie.chen\AppData\Roaming\VanDyke\Config\Sessions

????

新建一个文件,保存,怎么加载

【secrue CRT配置】

 C:\Users\ken.wei\AppData\Roaming\VanDyke\Config\Sessions

ctrl+| +g 定义的地方,ctrl+o 回退/返回

ctrl+} 跳到定义的地方

某些宏,函数等符号 被调用的 位置列表

ctrl+| +s 下面列出

空格+ cw 打开列表,上下翻,enter键进入某一个

回退 ctrl+o

删除查找列表 空格+ cc

#######################################################

对齐操作

V(大V)选择对齐的行,%,= 

三步操作

##################################

按v进入可视化界面,然后通过左右键选择文本,再按y进行复制,p就可以进行粘帖了

选择一个单词,删除,复制,黏贴等?

--->把光标停留在 要选择单词开始的位置,然后ctrl + n ,自动补齐选择这个单词,再按y进行复制,p就可以进行粘帖了

--->把光标停留在 要选择单词开始的位置,然后ctrl + n ,自动补齐选择这个单词,再按d进行删除了

vim自动补全 ctrl + n  

mkdir -p ${DDK_REL_DIR}/src/chip

# Module Name

MOD = BOOT_CHIP1

OUT = boot_chip1

${AR} -r ${OUT}.a ${OBJS}

cp -f ${LIBS} ${OUT}.a ${DDK_DIR}

cp -f ${LIBS} ${OUT}.a ${LIB_DIR}

readelf -s obj/chip_feature.o | grep  adv

${AR} -r ${OUT}.a ${OBJS}

http://p8-qt-compiler:8080/view/Cygwin_Daily_Aliboot/

make all CROSS_COMPILE=/zhsa112/usrhome/charlie.chen/work/brtoolchain/output/host/opt/ext-toolchain-for-aliboot-arm/bin/arm-none-eabi-

> h2. Status Update

> # 主要是处理各方案编译问题和脚本问题

> h2. Resovled/Close

> # 其余都OK

> h2. Open

> # BL_SDK1.0 增加 auto_build_all_3503b_as_n.sh

(15:08) upg_flag

(15:09) 0 - kernel

(15:09) 2 - alidownloader

(15:09) 1 - upg_kernel

(15:10) setenv upg_flag 2

(15:10) saveenv

1. vim的准备

 首先 vim --version | grpe cscope,看看vim是否支持cscope,如果不支持需要重新安装vim。最简单的是在./configure 后加上-enable-cscope,当然可以在Makefile文件(./src/Makefile)中修改(把原来的注释去掉),这是最根本的:

CONF_OPT_CSCOPE = --enable-cscope

然后安装:make && make install

2. cscope的准备

 安装cscope(我的版本15.6),由于是非root用户,需要./configure --prefix=$HOME/local/cscope指可执行定文件和man文件的地址。

3. 生成所需的文件

 前两样都具备了,现在可以在vim中用cscope来看代码了。怎么看?? 如同sourceingight一样,cscope需要一些数据文件(数据库&索引)来查找代码的相关关键字信息。

 这些文件需要手工生成: 格式: cscope [options]

下面是cscope的常用选项:

现在进入代码的根目录然后:cscope -Rbq。这个命令会生成三个文件:cscope.out, cscope.in.out, cscope.po.out。其中cscope.out是基本的符号索引,后两个文件是使用"-q"选项生成的,可以加快cscope的索引速度。

cscope缺省只解析C文件(.c和.h)、lex文件(.l)和yacc文件(.y),虽然它也可以支持C++以及Java,但它在扫描目录时会跳过C++及Java后缀的文件。如果你希望cscope解析C++或Java文件,需要把这些文件的名字和路径保存在一个名为cscope.files的文件。当cscope发现在当前目录中存在cscope.files时,就会为cscope.files中列出的所有文件生成索引数据库。

 一般用如下命令生成包含cpp文件的cscope.files:

 find ./ -name "*.h" -o -name "*.c" -o -name "*.cpp" > cscope.files

在cscope.files生成以后,就可以cscope -bq来得到索引(.out)文件了。

total 188

drwxrwxr-x 28 charlie.chen charlie.chen  4096 Jun 25 14:33 ./

drwxr-xr-x 30 charlie.chen charlie.chen  4096 Jun 26 15:56 ../

drwxrwxr-x  4 charlie.chen charlie.chen  4096 Jun 25 14:26 aliboot/

drwxr-xr-x  5 charlie.chen charlie.chen  4096 Feb 14 14:44 alicommon/

drwxrwxr-x  6 charlie.chen charlie.chen  4096 Jun 22 18:00 ALiCrypto/

drwxrwxr-x  4 charlie.chen charlie.chen  4096 Mar  9 19:28 armAlibootSize-sample/

drwxr-xr-x 19 charlie.chen charlie.chen  4096 May 18 18:58 bdrt_test/

drwxrwxr-x 23 charlie.chen charlie.chen 69632 May 23 16:01 brtoolchain/

drwxr-xr-x  5 charlie.chen charlie.chen  4096 Jun 21 19:35 C3503D_Rtl/

drwxrwxr-x  5 charlie.chen charlie.chen  4096 May 25 09:48 DDRaliboot1600/

drwxr-xr-x  8 charlie.chen charlie.chen  4096 Feb 20 14:26 FT_Tool/

drwxr-xr-x  7 charlie.chen charlie.chen  4096 Jun 23 19:12 FT_Tool_bak/

drwxr-xr-x 68 charlie.chen charlie.chen  4096 Jun  6 19:59 glibc-2.25/

drwxrwxr-x  6 charlie.chen charlie.chen  4096 Jun 24 19:29 M3526_Novel/

drwxrwxr-x  3 charlie.chen charlie.chen  4096 May 26 09:30 M3733ACS/

-rwxr--r--  1 charlie.chen charlie.chen   592 Jun 16 13:30 mkcscope*

drwxrwxr-x  3 charlie.chen charlie.chen  4096 Mar 31 13:45 myfile/

drwxrwxr-x  7 charlie.chen charlie.chen  4096 Mar  9 09:33 my_test/

drwxrwxr-x  4 charlie.chen charlie.chen  4096 Jun 19 21:08 my_vim/

drwxrwxr-x  3 charlie.chen charlie.chen  4096 Mar 14 19:00 qt-M3527/

drwxr-xr-x 15 charlie.chen charlie.chen  4096 Mar 10 13:55 S-tree-2017.03.02/

drwxrwxr-x  4 charlie.chen charlie.chen  4096 May 31 19:09 streeAliboot/

drwxrwxr-x  3 charlie.chen charlie.chen  4096 Mar  7 09:43 streeAlibootNOTE/

drwxrwxr-x  3 charlie.chen charlie.chen  4096 Jun  5 11:19 t_aliboot/

drwxrwxr-x  3 charlie.chen charlie.chen  4096 Jun 24 21:26 test_cscopes/

drwxrwxr-x  3 charlie.chen charlie.chen  4096 Feb 20 11:29 tool/

drwxr-xr-x 22 charlie.chen charlie.chen  4096 Apr  5 10:12 u-boot2/

drwxrwxr-x  3 charlie.chen charlie.chen  4096 Mar 21 18:15 uboot2.1/

drwxr-xr-x 22 charlie.chen charlie.chen  4096 Jun 24 21:36 u-boot-ali/

-rwxr--r--  1 charlie.chen charlie.chen  3005 Jun 21 20:15 work_project.txt*

-rwxrw-r--  1 charlie.chen charlie.chen  2883 Jun  9 13:45 work_project.txt.bak*

charlie.chen@zhsa01:~/work$ cd tool/

charlie.chen@zhsa01:~/work/tool$ mkcscope

mkcscope: command not found

charlie.chen@zhsa01:~/work/tool$ cd ..

charlie.chen@zhsa01:~/work$ cd -

/zhsa012/usrhome/charlie.chen/work/tool

charlie.chen@zhsa01:~/work/tool$ ./../mkcscope 

usage : makecscope src_path project_name

I will create cscope db in ~/cscope/project_name

charlie.chen@zhsa01:~/work/tool$ cd ~/.cscope/

charlie.chen@zhsa01:~/.cscope$ ls

my_test_cscope

charlie.chen@zhsa01:~/.cscope$ cd -

/zhsa012/usrhome/charlie.chen/work/tool

charlie.chen@zhsa01:~/work/tool$ cd ~/cscope

-bash: cd: /zhsa012/usrhome/charlie.chen/cscope: No such file or directory

charlie.chen@zhsa01:~/work/tool$ cd 

charlie.chen@zhsa01:~$ echo $PATH

/usr/local/git-2.3.0/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/bin:/opt:/opt/p4v/bin:/usr/local/arcanist/bin

:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/zhsa012/usrhome/charlie.chen/.local/bin:/opt/p4v/bin:

/zhsa012/usrhome/charlie.chen/work/test_bdrt/output/host/opt/ext-toolchain-for-aliboot-arm/bin

charlie.chen@zhsa01:~$ 

charlie.chen@zhsa01:~$ 

charlie.chen@zhsa01:~$ 

charlie.chen@zhsa01:~$ 

charlie.chen@zhsa01:~$ vim .bashrc 

 66 +--  2 lines: PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"------------------------------------------------------------------------------------------

 68 *)

 69     ;;

 70 esac

 71 

 72 # enable color support of ls and also add handy aliases

 73 if [ -x /usr/bin/dircolors ]; then

 74 +--  8 lines: test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"---------------------------------------------------------------------

 82 fi

 83 

 84 # some more ls aliases

 85 alias ll='ls -alF'

 86 alias la='ls -A'

 87 alias l='ls -CF'

 88 

 89 # Add an "alert" alias for long running commands.  Use like so:

 90 #   sleep 10; alert

 91 alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'

 92 

 93 # Alias definitions.

 94 # You may want to put all your additions into a separate file like

 95 # ~/.bash_aliases, instead of adding them here directly.

 96 # See /usr/share/doc/bash-doc/examples in the bash-doc package.

 97 

 98 if [ -f ~/.bash_aliases ]; then

 99     . ~/.bash_aliases

100 fi

101 set nu

102 

103 # enable programmable completion features (you don't need to enable

104 # this, if it's already enabled in /etc/bash.bashrc and /etc/profile

105 # sources /etc/bash.bashrc).

106 if [ -f /etc/bash_completion ] && ! shopt -oq posix; then

107     . /etc/bash_completion

108 fi

109 #----------------------------------------------------------------------------

110 export PATH=$PATH:/zhsa012/usrhome/charlie.chen/.local/bin                                                                                                              

111 export PATH=$PATH:/opt/p4v/bin

112 export P4CONFIG=~/.p4settings

113 export PATH=$PATH:/zhsa012/usrhome/charlie.chen/work/test_bdrt/output/host/opt/ext-toolchain-for-aliboot-arm/bin

 NORMAL >> .bashrc                                                                                      < sh < utf-8[unix] <  97% : 110/113 :  1 < ! mix-indent-file[47:32] 

charlie.chen@zhsa01:~$ 

charlie.chen@zhsa01:~$ ls

3505_flashwr  Desktop  Documents  Downloads  examples.desktop  Music  my_vim_fast  Pictures  Public  Templates  Videos  work  xxx.txt  yyyy.txt

charlie.chen@zhsa01:~$ mkcs^C

charlie.chen@zhsa01:~$ ^C

charlie.chen@zhsa01:~$ ^C

charlie.chen@zhsa01:~$ bash

charlie.chen@zhsa01:~$ mkcs^C

charlie.chen@zhsa01:~$ ^C

charlie.chen@zhsa01:~$ ls

3505_flashwr  Desktop  Documents  Downloads  examples.desktop  Music  my_vim_fast  Pictures  Public  Templates  Videos  work  xxx.txt  yyyy.txt

charlie.chen@zhsa01:~$ v .bashrc 

v: command not found

charlie.chen@zhsa01:~$ vi .bashrc 

 66 +--  2 lines: PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"------------------------------------------------------------------------------------------

 68 *)

 69     ;;

 70 esac

 71 

 72 # enable color support of ls and also add handy aliases

 73 if [ -x /usr/bin/dircolors ]; then

 74 +--  8 lines: test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"---------------------------------------------------------------------

 82 fi

 83 

 84 # some more ls aliases

 85 alias ll='ls -alF'

 86 alias la='ls -A'

 87 alias l='ls -CF'

 88 

 89 # Add an "alert" alias for long running commands.  Use like so:

 90 #   sleep 10; alert

 91 alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'

 92 

 93 # Alias definitions.

 94 # You may want to put all your additions into a separate file like

 95 # ~/.bash_aliases, instead of adding them here directly.

 96 # See /usr/share/doc/bash-doc/examples in the bash-doc package.

 97 

 98 if [ -f ~/.bash_aliases ]; then

 99     . ~/.bash_aliases

100 fi

101 set nu

102 

103 # enable programmable completion features (you don't need to enable

104 # this, if it's already enabled in /etc/bash.bashrc and /etc/profile

105 # sources /etc/bash.bashrc).

106 if [ -f /etc/bash_completion ] && ! shopt -oq posix; then

107     . /etc/bash_completion

108 fi

109 #----------------------------------------------------------------------------

110 export PATH=$PATH:/zhsa012/usrhome/charlie.chen/.local/bin                                                                                                              

111 export PATH=$PATH:/opt/p4v/bin

112 export P4CONFIG=~/.p4settings

113 export PATH=$PATH:/zhsa012/usrhome/charlie.chen/work/test_bdrt/output/host/opt/ext-toolchain-for-aliboot-arm/bin

 NORMAL >> .bashrc                                                                                      < sh < utf-8[unix] <  97% : 110/113 :  1 < ! mix-indent-file[47:32] 

charlie.chen@zhsa01:~$ type mkcscope

bash: type: mkcscope: not found

charlie.chen@zhsa01:~$ cd .loacl/bin/

charlie.chen@zhsa01:~/.loacl/bin$ ls

mkcscope

charlie.chen@zhsa01:~/.loacl/bin$ ll

total 12

drwxrwxr-x 2 charlie.chen charlie.chen 4096 Jun 26 11:31 ./

drwxrwxr-x 3 charlie.chen charlie.chen 4096 Jun 26 11:32 ../

-rwxr--r-- 1 charlie.chen charlie.chen  592 Jun 26 11:31 mkcscope*

charlie.chen@zhsa01:~/.loacl/bin$ cat mkcscope 

#!/bin/sh 

usage()

{

    echo "usage : makecscope src_path project_name"

    echo "I will create cscope db in ~/cscope/project_name"

}

if [ $# -ne 2  ]

then 

    usage

    exit

fi

SRC_PATH=$1

CSCOPE_PATH=~/.cscope/$2

mkdir -p $CSCOPE_PATH

cd $CSCOPE_PATH

find $SRC_PATH -name "*.h" -o -name "*.c" -o -name "Makefile" -o -name "makefile" -o -name "*.cpp" -o -name ".mk" -o -name "*.in" -o -name "*.defcfg" -o -name "*.def" -o -name "*.hpp" -o -name "*.sh" -o -name "*.S" -o -name "*.s" -o -name "*.txt" -o -name "*.md" -o -name "*.MD"> cscope.files

cscope -Rbkq -i ./cscope.files

ctags -R

charlie.chen@zhsa01:~/.loacl/bin$ ls

mkcscope

charlie.chen@zhsa01:~/.loacl/bin$ vi mkcscope 

  1 #!/bin/sh·

  2 

  3 usage()

  4 {

  5     echo "usage : makecscope src_path project_name"

  6     echo "I will create cscope db in ~/cscope/project_name"

  7 

  8 }

  9 if [ $# -ne 2  ]

 10 then·

 11     usage

 12     exit 1

 13 fi

 14 

 15 SRC_PATH=$1

 16 CSCOPE_PATH=~/.cscope/$2

 17 

 18 mkdir -p $CSCOPE_PATH

 19 cd $CSCOPE_PATH

 20 find $SRC_PATH -name "*.h" -o -name "*.c" -o -name "Makefile" -o -name "makefile" -o -name "*.cpp" -o -name ".mk" -o -name "*.in" -o -name "*.defcfg" -o -name "*.def" -

    o -name "*.hpp" -o -name "*.sh" -o -name "*.S" -o -name "*.s" -o -name "*.txt" -o -name "*.md" -o -name "*.MD"> cscope.files

 21 cscope -Rbkq -i ./cscope.files                                                                                                                                          

 22 ctags -R

~                                                                                                                                                                           

~                                                                                                                                                                           

~                                                                                                                                                                           

~                                                                                                                                                                           

~                                                                                                                                                                           

~                                                                                                                                                                           

~                                                                                                                                                                           

~                                                                                                                                                                           

~                                                                                                                                                                           

~                                                                                                                                                                           

~                                                                                                                                                                           

~                                                                                                                                                                           

~                                                                                                                                                                           

~                                                                                                                                                                           

~                                                                                                                                                                           

~                                                                                                                                                                           

~                                                                                                                                                                           

 NORMAL >> mkcscope                                                                                         < usage < sh < utf-8[unix] <  95% :  21/22 : 10 < ! trailing[1] 

charlie.chen@zhsa01:~/.loacl/bin$ source ~/.bashrc 

charlie.chen@zhsa01:~/.loacl/bin$ mk

mkdir             mkfifo            mkfs.cramfs       mkfs.jffs2        mkhomedir_helper  mkjobtexmf        mkntfs            mkswap            mktexmf

mkdirhier         mkfontdir         mkfs.ext2         mkfs.minix        mkhtmlindex       mklost+found      mkocp             mkt1font          mktexpk

mkdiskimage       mkfontscale       mkfs.ext3         mkfs.msdos        mkindex           mkmanifest        mkofm             mktemp            mktextfm

mkdosfs           mkfs              mkfs.ext4         mkfs.ubifs        mkinitramfs       mk_modmap         mkpasswd          mktexfmt          mkzftree

mke2fs            mkfs.bfs          mkfs.ext4dev      mkfs.vfat         mkisofs           mknod             mksmbpasswd       mktexlsr          

charlie.chen@zhsa01:~/.loacl/bin$ mk

mkdir             mkfifo            mkfs.cramfs       mkfs.jffs2        mkhomedir_helper  mkjobtexmf        mkntfs            mkswap            mktexmf

mkdirhier         mkfontdir         mkfs.ext2         mkfs.minix        mkhtmlindex       mklost+found      mkocp             mkt1font          mktexpk

mkdiskimage       mkfontscale       mkfs.ext3         mkfs.msdos        mkindex           mkmanifest        mkofm             mktemp            mktextfm

mkdosfs           mkfs              mkfs.ext4         mkfs.ubifs        mkinitramfs       mk_modmap         mkpasswd          mktexfmt          mkzftree

mke2fs            mkfs.bfs          mkfs.ext4dev      mkfs.vfat         mkisofs           mknod             mksmbpasswd       mktexlsr          

charlie.chen@zhsa01:~/.loacl/bin$ mkcs^C

charlie.chen@zhsa01:~/.loacl/bin$ ^C

charlie.chen@zhsa01:~/.loacl/bin$ vi /zhsa012/usrhome/charlie.chen/.bashrc 

 66 +--  2 lines: PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"------------------------------------------------------------------------------------------

 68 *)

 69     ;;

 70 esac

 71 

 72 # enable color support of ls and also add handy aliases

 73 if [ -x /usr/bin/dircolors ]; then

 74 +--  8 lines: test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"---------------------------------------------------------------------

 82 fi

 83 

 84 # some more ls aliases

 85 alias ll='ls -alF'

 86 alias la='ls -A'

 87 alias l='ls -CF'

 88 

 89 # Add an "alert" alias for long running commands.  Use like so:

 90 #   sleep 10; alert

 91 alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'

 92 

 93 # Alias definitions.

 94 # You may want to put all your additions into a separate file like

 95 # ~/.bash_aliases, instead of adding them here directly.

 96 # See /usr/share/doc/bash-doc/examples in the bash-doc package.

 97 

 98 if [ -f ~/.bash_aliases ]; then

 99     . ~/.bash_aliases

100 fi

101 set nu

102 

103 # enable programmable completion features (you don't need to enable

104 # this, if it's already enabled in /etc/bash.bashrc and /etc/profile

105 # sources /etc/bash.bashrc).

106 if [ -f /etc/bash_completion ] && ! shopt -oq posix; then

107     . /etc/bash_completion

108 fi

109 #----------------------------------------------------------------------------

110 export PATH=$PATH:/zhsa012/usrhome/charlie.chen/.local/bin

111 export PATH=$PATH:/opt/p4v/bin                                                                                                                                          

112 export P4CONFIG=~/.p4settings

113 export PATH=$PATH:/zhsa012/usrhome/charlie.chen/work/test_bdrt/output/host/opt/ext-toolchain-for-aliboot-arm/bin

 NORMAL >> .bashrc                                                                                      < sh < utf-8[unix] <  98% : 111/113 :  1 < ! mix-indent-file[47:32] 

"~/.bashrc" 113L, 3804C

  1 # ~/.bashrc: executed by bash(1) for non-login shells.

  2 # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)

  3 # for examples

  4 

  5 # If not running interactively, don't do anything

  6 [ -z "$PS1" ] && return

  7 

  8 # don't put duplicate lines or lines starting with space in the history.

  9 # See bash(1) for more options

 10 HISTCONTROL=ignoreboth

 11 

 12 # append to the history file, don't overwrite it

 13 shopt -s histappend

 14 

 15 # for setting history length see HISTSIZE and HISTFILESIZE in bash(1)

 16 HISTSIZE=1000

 17 HISTFILESIZE=2000

 18 

 19 # check the window size after each command and, if necessary,

 20 # update the values of LINES and COLUMNS.

 21 shopt -s checkwinsize

 22                                                                                                                                                                         

 23 # If set, the pattern "**" used in a pathname expansion context will

 24 # match all files and zero or more directories and subdirectories.

 25 #shopt -s globstar

 26 

 27 # make less more friendly for non-text input files, see lesspipe(1)

 28 [ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"

 29 

 30 # set variable identifying the chroot you work in (used in the prompt below)

 31 if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then

 32     debian_chroot=$(cat /etc/debian_chroot)

 33 fi

 34 

 35 # set a fancy prompt (non-color, unless we know we "want" color)

 36 case "$TERM" in

 37     xterm-color) color_prompt=yes;;

 38 esac

 39 

 40 # uncomment for a colored prompt, if the terminal has the capability; turned

 NORMAL >> .bashrc                                                                                      < sh < utf-8[unix] <  19% :  22/113 :  1 < ! mix-indent-file[47:32] 

   20 # Uncomment the following line to disable bi-weekly auto-update checks.

   21 DISABLE_AUTO_UPDATE="true"

   22 

   23 # Uncomment the following line to change how often to auto-update (in days).

   24 # export UPDATE_ZSH_DAYS=13

   25 

   26 # Uncomment the following line to disable colors in ls.

   27 # DISABLE_LS_COLORS="true"

   28 

   29 # Uncomment the following line to disable auto-setting terminal title.

   30 # DISABLE_AUTO_TITLE="true"

   31 

   32 # Uncomment the following line to enable command auto-correction.

   33 # ENABLE_CORRECTION="true" 

   34 

   35 # Uncomment the following line to display red dots whilst waiting for completion.

   36 # COMPLETION_WAITING_DOTS="true"

   37 

   38 # Uncomment the following line if you want to disable marking untracked files

   39 # under VCS as dirty. This makes repository status check for large repositories

   40 # much, much faster.

   41 # DISABLE_UNTRACKED_FILES_DIRTY="true"

   42 

   43 # Uncomment the following line if you want to change the command execution time

   44 # stamp shown in the history command output.

   45 # The optional three formats: "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"

   46 # HIST_STAMPS="mm/dd/yyyy"

   47 

   48 # Would you like to use another custom folder than $ZSH/custom?

   49 # ZSH_CUSTOM=/path/to/new-custom-folder

   50 

   51 # Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)

   52 # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/

   53 # Example format: plugins=(rails git textmate ruby lighthouse)

   54 # Add wisely, as too many plugins slow down shell startup.

~  55 plugins=(git autojump fancy-ctrl-z tmux zsh-autosuggestions web-search lighthouse)

   56 

   57 # User configuration

   58 

   59 export PATH=$HOME/bin:/usr/local/bin:$PATH

   60 # export MANPATH="/usr/local/man:$MANPATH"

+  61 # export LD_LIBRARY_PATH=$HOME/.vim/bundle/gdbmgr/gdbmgr/src:$PATH

+  62 # export LD_PRELOAD=$LD_PRELOAD:/usr/lib/libutil.so

   63 

   64 source $ZSH/oh-my-zsh.sh

   65 # source ~/.oh-my-zsh/plugins/incr/incr*.zsh

   66 

   67 

   68 # You may need to manually set your language environment

   69 # export LANG=en_US.UTF-8

   70 

   71 # Preferred editor for local and remote sessions

   72 # if [[ -n $SSH_CONNECTION ]]; then

   73 #   export EDITOR='vim'

   74 # else

   75 #   export EDITOR='mvim'

   76 # fi

   77 

   78 # Compilation flags

   79 # export ARCHFLAGS="-arch x86_64"

   80 

   81 # ssh

   82 # export SSH_KEY_PATH="~/.ssh/dsa_id"

   83 

   84 # Set personal aliases, overriding those provided by oh-my-zsh libs,

   85 # plugins, and themes. Aliases can be placed here, though oh-my-zsh

   86 # users are encouraged to define aliases within the ZSH_CUSTOM folder.

   87 # For a full list of active aliases, run `alias`.

   88 #

   89 # Example aliases

   90 # alias zshconfig="mate ~/.zshrc"

   91 # alias ohmyzsh="mate ~/.oh-my-zsh"

   92 

   93 ###########################added by rusang from here########################                                                                                          

 NORMAL > +227 ~10 -0 develop > .zshrc RO                                                                                         < zsh < utf-8[unix] <  11% :  93/828 :  1 

/export

  374 #命令提示符

  375 #RPROMPT=$(echo "$RED%D %T$FINISH")

  376 #PROMPT=$(echo "$CYAN%n@$YELLOW%M:$GREEN%/$_YELLOW>$FINISH ")

  377 #RPROMPT=$(echo "$RED%D %T$FINISH")

  378 #PROMPT=$(echo "$RED%n $CYAN%/$YELLOW:$_GREEN)$FINISH ")

  379 

  380 #PROMPT=$(echo "$BLUE%M$GREEN%/

  381 #$CYAN%n@$BLUE%M:$GREEN%/$_YELLOW>>>$FINISH ")

  382 #标题栏、任务栏样式{{{

  383 case $TERM in (*xterm*|*rxvt*|(dt|k|E)term)

  384 #precmd () { print -Pn "\e]0;%n@%M//%/\a" }

  385 #precmd () { print -Pn "\e]0;%n@%M//%/\a" }

  386 precmd () { print -Pn "\e]0;%n@%M%/\a" }

  387 precmd () { print -Pn "\e]0;%n@%M%/\a" }

  388 ;;

  389 esac

  390 #}}}

  391 

  392 #编辑器

  393 export EDITOR=vim

  394 #输入法

  395 export XMODIFIERS="@im=ibus"

  396 export QT_MODULE=ibus

  397 export GTK_MODULE=ibus

  398 #关于历史纪录的配置 {{{

  399 #历史纪录条目数量

  400 export HISTSIZE=10000

  401 #注销后保存的历史纪录条目数量

  402 export SAVEHIST=10000                                                                                                                                                 

  403 #历史纪录文件

  404 export HISTFILE=~/.zhistory

  405 #以附加的方式写入历史纪录

  406 setopt INC_APPEND_HISTORY

  407 #如果连续输入的命令相同,历史纪录中只保留一个

  408 setopt HIST_IGNORE_DUPS

  409 #为历史纪录中的命令添加时间戳

  410 setopt EXTENDED_HISTORY

  411 

  412 #启用 cd 命令的历史纪录,cd -[TAB]进入历史路径

  413 setopt AUTO_PUSHD

 NORMAL > +227 ~10 -0 develop > .zshrc RO                                                                                < precmd < zsh < utf-8[unix] <  48% : 402/828 :  1 

/export

   20 # Uncomment the following line to disable bi-weekly auto-update checks.

   21 DISABLE_AUTO_UPDATE="true"

  591 bindkey "\e\e" sudo-command-line

  592 #}}}

  593 

  594 #命令别名 {{{

  595 alias cp='cp -i'

  596 alias mv='mv -i'

~ 597 # alias rm='rm -i'

  598 alias la='ls -a'

  599 alias p='sudo pacman'

  600 alias y='yaourt'

  601 alias h='htop'

  602 alias ls='ls --color=auto'

  603  alias ll='ls -l -h --color=auto'

  604  alias l=ls

  605  alias grep='grep --color=auto'

  606  #PS1='[`date +%R:%S` \u@\h \W]\$ '

  607  #PS1='\[\033[01;32m\]`date +%R:%S` \u@\h\[\033[01;34m\] \w\$\[\033[00m\] '

  608 #PS1='\[\033[01;32m\]\t \u \[\033[01;34m\]\w\$\[\033[00m\] '

  609 #PS1='\[\033[33m\]\t\[\033[36m\] \u \[\033[32m\]\w\[\033[01;34m\]\$\[\033[00m\] '

  610 # export PATH="$PATH:$HOME/.bash"                                                                                                                                     

  611  #export PATH="$PATH:/opt/dassault-systemes/DraftSight/Linux"

  612  #export PATH="$PATH:/opt/android-sdk/tools:/opt/java/bin"

  613  #export PATH="$PATH:/opt/android-sdk/platform-tools/"

  614  #export PATH="$PATH:/opt/matlab/R2013a/bin/"

~ 615  export PATH=$HOME/.local/bin:$PATH

+ 616 export PATH=$HOME/bin:/usr/local/bin:$PATH

  617 

  618  #source ~/.profile

  619  #export USE_CCACHE=1

  620  #python Docs

  621  #export PYTHONDOCS=/usr/share/doc/python2/html/

  622 

  623  alias v='vim'

  624  alias g='gvim'

  625  alias lf='leafpad'

+ 626  alias t='tig'

  627  #alias shutter='shutter -select'

  628  alias vimrc='vim ~/.vimrc'

  629  alias ctags='ctags --c++-kinds=+p --fields=+iaS --extra=+q'

  630 

 NORMAL > +227 ~10 -0 develop > .zshrc RO                                                                                 < top50 < zsh < utf-8[unix] <  73% : 610/828 : 10 

:! man 'PATH'

No manual entry for PATH

shell returned 16

Press ENTER or type command to continue

  591 bindkey "\e\e" sudo-command-line

  592 #}}}

  593 

  594 #命令别名 {{{

  595 alias cp='cp -i'

  596 alias mv='mv -i'

~ 597 # alias rm='rm -i'

  598 alias la='ls -a'

  599 alias p='sudo pacman'

  600 alias y='yaourt'

  601 alias h='htop'

  602 alias ls='ls --color=auto'

  603  alias ll='ls -l -h --color=auto'

  604  alias l=ls

  605  alias grep='grep --color=auto'

  606  #PS1='[`date +%R:%S` \u@\h \W]\$ '

  607  #PS1='\[\033[01;32m\]`date +%R:%S` \u@\h\[\033[01;34m\] \w\$\[\033[00m\] '

  608 #PS1='\[\033[01;32m\]\t \u \[\033[01;34m\]\w\$\[\033[00m\] '

  609 #PS1='\[\033[33m\]\t\[\033[36m\] \u \[\033[32m\]\w\[\033[01;34m\]\$\[\033[00m\] '

  610 # export PATH="$PATH:$HOME/.bash" #export PATH="$PATH:/opt/dassault-systemes/DraftSight/Linux" #export PATH="$PATH:/opt/android-sdk/tools:/opt/java/bin"              

  611  #export PATH="$PATH:/opt/android-sdk/platform-tools/"

  612  #export PATH="$PATH:/opt/matlab/R2013a/bin/"

~ 613  export PATH=$HOME/.local/bin:$PATH

+ 614 export PATH=$HOME/bin:/usr/local/bin:$PATH

  615 

  616  #source ~/.profile

  617  #export USE_CCACHE=1

  618  #python Docs

  619  #export PYTHONDOCS=/usr/share/doc/python2/html/

  620 

  621  alias v='vim'

  622  alias g='gvim'

  623  alias lf='leafpad'

+ 624  alias t='tig'

  625  #alias shutter='shutter -select'

  626  alias vimrc='vim ~/.vimrc'

  627  alias ctags='ctags --c++-kinds=+p --fields=+iaS --extra=+q'

  628  

  629  alias pacman='sudo pacman'

  630  alias gchrome='google-chrome-stable'

 NORMAL > +227 ~10 -0 develop > .zshrc[+] RO                                                                              < top50 < zsh < utf-8[unix] <  73% : 610/826 : 95 

:! man 'export'

[No write since last change]

EXPORT(P)                                                              POSIX Programmer's Manual                                                              EXPORT(P)

NAME

       export - set the export attribute for variables

SYNOPSIS

       export name[=word]...

       export -p

DESCRIPTION

       The shell shall give the export attribute to the variables corresponding to the specified names, which shall cause them to be in the environment of subsequently

       executed commands. If the name of a variable is followed by = word, then the value of that variable shall be set to word.

       The export special built-in shall support the Base Definitions volume of IEEE Std 1003.1-2001, Section 12.2, Utility Syntax Guidelines.

       When -p is specified, export shall write to the standard output the names and values of all exported variables, in the following format:

              "export %s=%s\n", <name>, <value>

       if name is set, and:

              "export %s\n", <name>

       if name is unset.

       The shell shall format the output, including the proper use of quoting, so that it is suitable for reinput to the  shell  as  commands  that  achieve  the  same

       exporting results, except:

        1. Read-only variables with values cannot be reset.

        2. Variables  that  were  unset  at  the time they were output need not be reset to the unset state if a value is assigned to the variable between the time the

           state was saved and the time at which the saved output is reinput to the shell.

       When no arguments are given, the results are unspecified.

OPTIONS

       See the DESCRIPTION.

OPERANDS

       See the DESCRIPTION.

Press ENTER or type command to continue

  595 alias cp='cp -i'

  596 alias mv='mv -i'

~ 597 # alias rm='rm -i'

  595 alias cp='cp -i'

  596 alias mv='mv -i'

~ 597 # alias rm='rm -i'

  598 alias la='ls -a'

  599 alias p='sudo pacman'

  600 alias y='yaourt'

  601 alias h='htop'

  602 alias ls='ls --color=auto'

  603  alias ll='ls -l -h --color=auto'

  604  alias l=ls

  605  alias grep='grep --color=auto'

  606  #PS1='[`date +%R:%S` \u@\h \W]\$ '

  607  #PS1='\[\033[01;32m\]`date +%R:%S` \u@\h\[\033[01;34m\] \w\$\[\033[00m\] '

  608 #PS1='\[\033[01;32m\]\t \u \[\033[01;34m\]\w\$\[\033[00m\] '

  609 #PS1='\[\033[33m\]\t\[\033[36m\] \u \[\033[32m\]\w\[\033[01;34m\]\$\[\033[00m\] '

~_610 # export PATH="$PATH:$HOME/.bash" #export PATH="$PATH:/opt/dassault-systemes/DraftSight/Linux"

  611  #export PATH="$PATH:/opt/android-sdk/tools:/opt/java/bin"

  612  #export PATH="$PATH:/opt/android-sdk/platform-tools/"

  613  #export PATH="$PATH:/opt/matlab/R2013a/bin/"

~ 614 export PATH=$HOME/.local/bin:$PATH

+ 615 export PATH=$HOME/bin:/usr/local/bin:$PATH

  616                                                                                                                                                                       

  617  #source ~/.profile

  618  #export USE_CCACHE=1

  619  #python Docs

  620  #export PYTHONDOCS=/usr/share/doc/python2/html/

  621 

  622  alias v='vim'

  623  alias g='gvim'

  624  alias lf='leafpad'

+ 625  alias t='tig'

  626  #alias shutter='shutter -select'

  627  alias vimrc='vim ~/.vimrc'

  628  alias ctags='ctags --c++-kinds=+p --fields=+iaS --extra=+q'

  629  

  630  alias pacman='sudo pacman'

  631  alias gchrome='google-chrome-stable'

  632  

  633  alias systemctl='sudo systemctl'

  634  alias fdisk='sudo fdisk'

 NORMAL > +227 ~11 -1 develop > .zshrc[+] RO                                                                              < top50 < zsh < utf-8[unix] <  74% : 616/827 :  1 

E45: 'readonly' option is set (add ! to override)

  788 export PAGER="`which less` -s"

  789 export BROWSER="$PAGER"

  788 export PAGER="`which less` -s"

  789 export BROWSER="$PAGER"

  790 export LESS_TERMCAP_mb=$'\E[01;34m'

  791 export LESS_TERMCAP_md=$'\E[01;34m'

  792 export LESS_TERMCAP_me=$'\E[0m'

  793 export LESS_TERMCAP_se=$'\E[0m'

  794 export LESS_TERMCAP_so=$'\E[01;44;33m'

  795 export LESS_TERMCAP_ue=$'\E[0m'

  796 export LESS_TERMCAP_us=$'\E[01;33m'

  797 # POWERLINE_SCRIPT=/usr/lib/python3.5/site-packages/powerline/bindings/bash/powerline.sh

  798 # if [ -f $POWERLINE_SCRIPT  ]; then

  799     | # source $POWERLINE_SCRIPT

  800   # fi

~ 801 # powerline-daemon -q

~ 802 # POWERLINE_BASH_CONTINUATION=1

~ 803 # POWERLINE_BASH_SELECT=1

  804 # . /usr/lib/python3.5/site-packages/powerline/bindings/zsh/powerline.zsh

  805 # source /usr/lib/python3.5/site-packages/powerline/bindings/zsh/powerline.zsh

  806 # export HTTP_PROXY="http://127.0.0.1:9050"

  807 # export HTTPS_PROXY="http://127.0.0.1:9050"

  808 

  809 #powerline-zsh-theme settings

  810 #默认配置如下

  811 # POWERLINE_GIT_CLEAN="✔"

  812 # POWERLINE_GIT_DIRTY="✘"

  813 # POWERLINE_GIT_ADDED="%F{green}✚%F{black}"

  814 # POWERLINE_GIT_MODIFIED="%F{blue}✹%F{black}"

  815 # POWERLINE_GIT_DELETED="%F{red}✖%F{black}"

  816 # POWERLINE_GIT_UNTRACKED="%F{yellow}✭%F{black}"

  817 # POWERLINE_GIT_RENAMED="➜"

  818 # POWERLINE_GIT_UNMERGED="═"

  819 

  820 #speed pip

  821 export STANDARD_CACHE_DIR="${XDG_CACHE_HOME:-${HOME}/.cache}/pip"

  822 export WHEELHOUSE="${STANDARD_CACHE_DIR}/wheelhouse"

  823 export PIP_FIND_LINKS="file://${WHEELHOUSE}"

  824 export PIP_WHEEL_DIR="${WHEELHOUSE}"

  825 #

+ 826 # source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh

+ 827 source  ~/.oh-my-zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh                                                                                      

 NORMAL > +227 ~11 -1 develop > .zshrc[+] RO                                                                           < timeconv < zsh < utf-8[unix] < 100% : 827/827 :  1 

charlie.chen@zhsa01:~/.loacl/bin$ v ~/.bashrc 

v: command not found

charlie.chen@zhsa01:~/.loacl/bin$ vi ~/.bashrc 

 66 +--  2 lines: PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"------------------------------------------------------------------------------------------

 68 *)

 69     ;;

 70 esac

 71 

 72 # enable color support of ls and also add handy aliases

 73 if [ -x /usr/bin/dircolors ]; then

 74 +--  8 lines: test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"---------------------------------------------------------------------

 82 fi

 83 

 84 # some more ls aliases

 85 alias ll='ls -alF'

 86 alias la='ls -A'

 87 alias l='ls -CF'

 88 

 89 # Add an "alert" alias for long running commands.  Use like so:

 90 #   sleep 10; alert

 91 alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'

 92 

 93 # Alias definitions.

 94 # You may want to put all your additions into a separate file like

 95 # ~/.bash_aliases, instead of adding them here directly.

 96 # See /usr/share/doc/bash-doc/examples in the bash-doc package.

 97 

 98 if [ -f ~/.bash_aliases ]; then

 99     . ~/.bash_aliases

100 fi

101 set nu

102 

103 # enable programmable completion features (you don't need to enable

104 # this, if it's already enabled in /etc/bash.bashrc and /etc/profile

105 # sources /etc/bash.bashrc).

106 if [ -f /etc/bash_completion ] && ! shopt -oq posix; then

107     . /etc/bash_completion

108 fi

109 #----------------------------------------------------------------------------                                                                                           

110 export PATH=$PATH:/zhsa012/usrhome/charlie.chen/.local/bin:$PATH

111 export PATH=$PATH:/opt/p4v/bin

112 export P4CONFIG=~/.p4settings

113 export PATH=$PATH:/zhsa012/usrhome/charlie.chen/work/test_bdrt/output/host/opt/ext-toolchain-for-aliboot-arm/bin

 NORMAL >> .bashrc                                                                                      < sh < utf-8[unix] <  96% : 109/113 :  1 < ! mix-indent-file[47:32] 

charlie.chen@zhsa01:~/.loacl/bin$ source ~/.bashrc                           

charlie.chen@zhsa01:~/.loacl/bin$ mk^C

charlie.chen@zhsa01:~/.loacl/bin$ ^C

charlie.chen@zhsa01:~/.loacl/bin$ ^C

charlie.chen@zhsa01:~/.loacl/bin$ cd 

charlie.chen@zhsa01:~$ source .bashrc 

charlie.chen@zhsa01:~$ 

charlie.chen@zhsa01:~$ ls

3505_flashwr  Desktop  Documents  Downloads  examples.desktop  Music  my_vim_fast  Pictures  Public  Templates  Videos  work  xxx.txt  yyyy.txt

charlie.chen@zhsa01:~$ type mkcscope

bash: type: mkcscope: not found

charlie.chen@zhsa01:~$ ls

3505_flashwr  Desktop  Documents  Downloads  examples.desktop  Music  my_vim_fast  Pictures  Public  Templates  Videos  work  xxx.txt  yyyy.txt

charlie.chen@zhsa01:~$ chmod 777 -R .loacl/

charlie.chen@zhsa01:~$ cd .loc

bash: cd: .loc: No such file or directory

charlie.chen@zhsa01:~$ cd .loacl/

charlie.chen@zhsa01:~/.loacl$ ls

bin

charlie.chen@zhsa01:~/.loacl$ cd bin/

charlie.chen@zhsa01:~/.loacl/bin$ ls

mkcscope

charlie.chen@zhsa01:~/.loacl/bin$ cd 

charlie.chen@zhsa01:~$ bash

charlie.chen@zhsa01:~$ 

charlie.chen@zhsa01:~$ 

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多