sh useful_aliases.sh

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh useful_aliases.sh相关的知识,希望对你有一定的参考价值。

# Config Aliases (easily edit your config files)
# (not needed if using zsh + ohmyzsh as it adds them for you)
alias gitconfig="vim ~/.gitconfig"
alias gitignore="vim ~/.gitignore"
alias vimconfig="vim ~/.vimrc"
alias zshconfig="vim ~/.zshrc" # DELETE IF NOT USING ZSH
alias ohmyzsh="vim ~/.oh-my-zsh" # DELETE IF NOT USING ohmyzsh
alias bashconfig="vim ~/.bash_profile" # DELETE IF NOT USING BASH

# git aliases (not needed if using zsh + ohmyzsh as it adds them for you)
alias gco="git checkout"
alias gcm="git checkout master"
alias gcb="git checkout -b"
alias gb="git branch"
alias gst="git status"
alias gl="git pull"
alias gp="git push"
alias gcmsg="git commit -m"
alias gf="git fetch"
alias ga="git add"

# sfdx aliases
alias sfls="sfdx force:org:list"

# authenticates with dev hub, sets it as default and calls it 'grs-prod'
alias sflogin="sfdx force:auth:web:login -d -a grs-prod"

# creates scratch org, user must provide alias
alias create_org="sfdx force:org:create -s -f config/project-scratch-def.json -a"

# deletes a scratch org with provided alias
alias sfdelete="sfdx force:org:delete -u" 

# all of these will use the default username unless supplied the
# -u flag with an alias / username
alias sfopen="sfdx force:org:open"
alias sfstatus="sfdx force:source:status"
alias sfpush="sfdx force:source:push"
alias sfpull="sfdx force:source:pull"

以上是关于sh useful_aliases.sh的主要内容,如果未能解决你的问题,请参考以下文章

如何使我的命令行在具有扩展名(.sh)和名称如“weird.sh.sh.sh”的文件上工作

sh sh_template.sh

sh sh.sh

Linux下面如何运行 SH文件

配置告警系统主脚本main.sh mon.sh load.sh 502.sh disk.sh

shell 脚本各种执行方式(source ./*.sh, . ./*.sh, ./*.sh)的区别