linux之自定義命令

    本人使用的是ubuntu系統,不喜歡建各類桌面快捷連接,可是每次啓動個軟件,去查找又麻煩,因此自定義了命令,來快捷的啓動應用:git

一、修改/etc/bash.bashrc,在文件末尾,加上以下List-1中的內容。github

二、執行source /etc/bash.bashrc,以後在命令行中執行idea,就會啓動Intellij idea應用了,簡單、合適、方便。web

    List-1ubuntu

#custom alias
jetbrainsVar=/opt/software/tool/jetbrains
alias jetbrains="cd ${jetbrainsVar}"

intellijIdeaVar=/opt/software/tool/jetbrains/idea/idea-182/bin/idea.sh
alias idea="nohup ${intellijIdeaVar} &"

webstormVar=/opt/software/tool/jetbrains/webstorm/webStorm-182/bin/webstorm.sh
alias webstorm="nohup ${webstormVar} &"

datagripVar=/opt/software/tool/jetbrains/datagrip/dataGrip-2018.2.4/bin/datagrip
.sh
alias datagrip="nohup ${datagripVar} &"

documentVar=/opt/document
alias document="cd ${documentVar}"

workspace_company=/opt/software/tool/jetbrains/idea/workspace-company
alias workspacecompany="cd ${workspace_company}"

workspace_webstorm=/opt/software/tool/jetbrains/webstorm/workspace
alias workspacewebstorm="cd ${workspace_webstorm}"

postman_dir=/opt/software/tool/postman/app/Postman
alias postman="nohup ${postman_dir} &"

github_dir=/opt/software/github
alias github="cd ${github_dir}"

download_dir=/home/xxx/Downloads
alias download="cd ${download_dir}"

sublime_dir=/opt/software/tool/sublimeText2/sublime_text
alias sublime="nohup ${sublime_dir} &"


#robot-mongo
robotVar=/opt/software/tool/robo3t/bin/robo3t
alias robot="nohup ${robotVar} &"
相關文章
相關標籤/搜索