fixed fake-logs bug and added .bashrc
This commit is contained in:
parent
84c165240f
commit
a099325707
24
.bashrc
Normal file
24
.bashrc
Normal file
@ -0,0 +1,24 @@
|
||||
# .bashrc
|
||||
|
||||
# Source global definitions
|
||||
if [ -f /etc/bashrc ]; then
|
||||
. /etc/bashrc
|
||||
fi
|
||||
|
||||
# Uncomment the following line if you don't like systemctl's auto-paging feature:
|
||||
# export SYSTEMD_PAGER=
|
||||
|
||||
# User specific aliases and functions
|
||||
parse_git_branch() {
|
||||
repo_branch=$(git branch --show-current 2> /dev/null)
|
||||
[ ${#repo_branch} != 0 ] && echo "://[${repo_branch}]"
|
||||
}
|
||||
|
||||
#export PS1='\[\e[1;92m\][\u@\h \W]$\[\e[0m\] '
|
||||
export PS1='\[\e[120;92m\]\u\[\e[120;90m\]@\[\e[120;93m\]\H\[\e[120;90m\] :: \d \t \[\e[0;32m\]\w$(parse_git_branch)\[\e[0m\]\n\[\e[1;92m\] $\[\e[0m\] '
|
||||
|
||||
|
||||
# Path
|
||||
#PATH=$PATH:$HOME/.local/bin:$HOME/bin:.
|
||||
PATH=$PATH:~/.local/bin:.
|
||||
|
@ -37,7 +37,8 @@ def parse_args():
|
||||
argp.add_argument(
|
||||
'-c', '--count',
|
||||
type=int,
|
||||
help="Number of log files to generate"
|
||||
default=1,
|
||||
help="Number of log files to generate (default: %(default)s)"
|
||||
)
|
||||
|
||||
return argp.parse_args()
|
||||
@ -151,7 +152,7 @@ def main():
|
||||
if size_type == 'consistent':
|
||||
truncate_log_file(log_filename)
|
||||
file_complete = True
|
||||
file_count++
|
||||
file_count += 1
|
||||
|
||||
except KeyboardInterrupt:
|
||||
time.sleep(0.25)
|
||||
|
Loading…
Reference in New Issue
Block a user