This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| for d in $(ls -d ~/all_git/*/); do | |
| echo $d && git -C $d status -s && ls -a $d | grep -q .gitmodules && git -C $d submodule foreach git status -s | |
| done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| which vim || apt install vim ; which sshfs || apt install sshfs ; which htop || apt install htop | |
| printf "\nalias p='python3'\nalias pip='pip3'\nset -o vi\nalias ls='ls -lh --color=auto --group-directories-first'\n" >> .bashrc ; printf "alias gss='git status -s'\nalias gp='git push'\nalias ggl='git pull origin master'" >> .bashrc | |
| chmod +w .bashrc | |
| source .bashrc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| . - Any one character | |
| * - Match any number of previous character (including zero number of previous character) | |
| + - Match any number of previous character | |
| $ - End of the line | |
| ^ - Beginning of the line | |
| \S - Any non-whitespace character | |
| \s - Any whitespace character | |
| ? - The character before is optional | |
| [a-z] - Any lowercase letter | |
| [A-Z] - Any uppercase letter |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| home = '/home/bruhtus/' | |
| dir_list = [dirname for dirname in os.listdir(f'{home}/all_git') if os.path.isdir(f'{home}/all_git/{dirname}') == True] | |
| for dirname in dir_list: | |
| path = f'{home}/all_git/{dirname}' | |
| os.system(f'echo {path}') | |
| if os.path.exists(f'{path}/.gitmodules') == True: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| #change shell to zsh | |
| #os.system('chsh -s /bin/zsh') | |
| os.system('chsh -s $(which zsh)') | |
| print('Changed shell to zsh') | |
| #update system first | |
| os.system('sudo pacman -Syyu') | |
| print('Finish update package') |
NewerOlder