首页 > 其他分享 >bashrc

bashrc

时间:2023-03-16 21:13:25浏览次数:30  
标签:function git alias -- bashrc gitacp commit

alias ll="ls -l"
alias la="ls -a"
alias lla="ls -la"
alias lal="ls -al"
alias plc="ping 192.168.1.200"
alias hmi="ping 192.168.1.210"
alias main="node main.js"
alias index="node index.js"
alias cdr="cd ~"

alias sshd="/usr/bin/sshd"

alias gitrhh='git reset --hard HEAD'
alias gituu='git branch --unset-upstream'
alias gitsu='git branch --set-upstream-to='
alias gitpu='git push -u origin master'

function winc { 
    gcc $* 
    ./a.exe
}
function pin { 
    ping 192.168.1."$*" 
}
function live { 
    live-server --port="$*" 
}
function gitpl {
    git pull
}
function gitco { 
    git commit -m "gitc:$*" 
}
function gitac {
    git add .
    git commit -m "gitac:$*"
}
function gitacp {
    git add .
    git commit -m "gitacp:$*"
    git push
}
function gitacp {
    git add .
    git commit -m "gitacp:$*"
    git pull --rebase
    git push
}

function gitcat { 
    echo "gittc:$*">> $1.txt
    git add .
    git commit -m "gitc:$*" 
    git lg
    cat $1.txt
}

function fh { 
    fgrep -rn --color "$*" *.html *.md *.txt *.htm
}

标签:function,git,alias,--,bashrc,gitacp,commit
From: https://www.cnblogs.com/zdjvimrc/p/17224141.html

相关文章

  • Linux文件 profile、bashrc、bash_profile区别
    Linux系统中,有三种文件出现的非常频繁,那就是profile、bash_profile、bashrc文件。1、profile作用profile,路径:/etc/profile,用于设置系统级的环境变量和启动程序,在......
  • 论.bashrc和.bash_profile的区别
    背景今天在使用堡垒机连接后端主机的时候发现无法使用xftp打开后端主机的/tmp目录,但是用ssh命令行登陆可以列出/tmp目录,折腾了快一天了才发现问题原因,原来是自己的基础不牢......
  • Linux profile、bashrc、bash_profile
    一、profile文件1、profile文件的作用profile(/etc/profile),用于设置系统级的环境变量和启动程序,在这个文件下配置会对所有用户生效。当用户登录(login)时,文件会被执行......
  • bashrc 配置文件自定义指南,如何快速cd到指定路径、添加别名、使用函数等
    目录bashrc配置文件是啥?自定义.bashrc配置文件的好处如何编辑bashrc配置文件使你的修改生效如何在.bashrc中使用别名——比如可以快速cd到某个路径起个别名——cdd,快速......
  • bashrc与profile的区别
    bashrc与profile的区别1,要搞清bashrc与profile的区别,首先要弄明白什么是交互式shell和非交互式shell,什么是loginshell和non-loginshell。交互式模式就是shell等待......
  • ~/.bashrc和/etc/profile的区别,如何将conda加进环境变量
    使用su-会执行etc/profile,而不会执行~/.bashrc.直接终端登录,会执行~/.bashrc。如何解决conda安装了,却找不到的现象Forbashuse:$cdYOUR_PATH_ANACONDA/bin$./......
  • Linux的环境变量.bash_profile .bashrc profile文件、Login Shell和Non login shell
    loginshell和non-loginshell的区别:loginshell:取得bash时需要完整的登录流程。就是说通过输入账号和密码登录系统,此时取得的shell称为loginshell。用户成功登陆后使用......
  • 两个.bashrc文件配置问题
    目录​​问题:​​​​解决办法:​​当我用fireflyrk3328开发板用ros进行主从机通讯的时候,需要更改.bashrc文件的配置进行主从机通讯,但是却发现有两个.bashrc文件,那么该如何......
  • /etc/profile、/etc/bashrc、~/.bash_profile、~/.bashrc 文件的作用
    /etc/profile:此文件为系统的每个用户设置环境信息,当用户第一次登录时,该文件被执行.并从/etc/profile.d目录的配置文件中搜集shell的设置.可以认为系统环境变量.~/.bas......
  • 脚本中使用source ~/.bashrc失效问题
    问题使用脚本自动化,向~/.bashrc新增$PATH路径后无法通过source生效。原因~/.bashrc被设计成非交互模式下不生效#~/.bashrc:executedbybash(1)fornon-loginshell......