os: fedora39 -- 配置和常用脚本
一、fedora39 - 基本配置信息
1 [laohu@fedora ~/user/lidawei/tmp/null]$ cat ~/.bashrc 2 # .bashrc 3 4 # Source global definitions 5 if [ -f /etc/bashrc ]; then 6 . /etc/bashrc 7 fi 8 9 # User specific environment 10 if ! [[ "$PATH" =~ "$HOME/.local/bin:$HOME/bin:" ]]; then 11 PATH="$HOME/.local/bin:$HOME/bin:$PATH" 12 fi 13 export PATH 14 15 # Uncomment the following line if you don't like systemctl's auto-paging feature: 16 # export SYSTEMD_PAGER= 17 18 # User specific aliases and functions 19 if [ -d ~/.bashrc.d ]; then 20 for rc in ~/.bashrc.d/*; do 21 if [ -f "$rc" ]; then 22 . "$rc" 23 fi 24 done 25 fi 26 unset rc 27 28 29 30 31 # 2023-11-13 by david 32 # 33 34 35 # alias 36 alias sudo='echo 211224ln | sudo -S' 37 alias reboot='sudo reboot' 38 alias off='sudo shutdown -h now' 39 40 41 #path 42 TOOLS='/home/laohu/user/tools' 43 export PATH=${PATH}:${TOOLS} 44 45 46 #work directory 47 WORK_DIR='/home/laohu/user/lidawei/tmp/null' 48 cd ${WORK_DIR} 49 50 51 [laohu@fedora ~/user/lidawei/tmp/null]$ 52 [laohu@fedora ~/user/lidawei/tmp/null]$
二、基本脚本
三、参考文档
1、
2、
3、
标签:bin,--,bashrc,user,lidawei,PATH,os,laohu,fedora39 From: https://www.cnblogs.com/lnlidawei/p/17830034.html