lnlidawei

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

os_config:  fedora38 ~ bash config

 

 

 

 

  1. bash config (~/.bashrc)

 1 [wit@fedora 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:" ]]
11 then
12     PATH="$HOME/.local/bin:$HOME/bin:$PATH"
13 fi
14 export PATH
15 
16 # Uncomment the following line if you don't like systemctl's auto-paging feature:
17 # export SYSTEMD_PAGER=
18 
19 # User specific aliases and functions
20 if [ -d ~/.bashrc.d ]; then
21         for rc in ~/.bashrc.d/*; do
22                 if [ -f "$rc" ]; then
23                         . "$rc"
24                 fi
25         done
26 fi
27 
28 unset rc
29 
30 
31 
32 
33 
34 
35 #
36 # 2023-08-01 by david
37 #
38 
39 
40 # rustc environment
41 # . "$HOME/.cargo/env"
42 . "$HOME/.cargo/env"
43 
44 
45 # alias
46 alias gpp="g++ -g -Wall -o"
47 alias cls="clear"
48 alias reboot="echo pw!123 | sudo -S reboot"
49 alias shutdown="echo pw!123 | sudo -S shutdown -h now"
50 alias off="echo pw!123 | sudo -S shutdown -h now"
51 
52 
53 # TOOLS
54 export TOOLS="/home/wit/user/tools"
55 export PATH=$PATH:${TOOLS}
56 
57 
58 # change work_directory
59 WORK_DIR="/home/wit/user/lidawei/tmp/null"
60 cd ${WORK_DIR}
61 
62 
63 [wit@fedora null]$ 
64 [wit@fedora null]$ 

 

 

 

 

posted on 2023-11-01 17:35  lnlidawei  阅读(3)  评论(0编辑  收藏  举报