the0demiurge / Charlesscripts
Licence: other
My awesome scripts for Arch Linux or Ubuntu Gnome latest LTS or MacBook.
Stars: ✭ 936
Projects that are alternatives of or similar to Charlesscripts
Dotfiles
Configuration for Linux, Nix, i3, Kitty, Fish, Neovim and more
Stars: ✭ 379 (-59.51%)
Mutual labels: fish, dotfiles, arch-linux
dotfiles
My dotfiles for Arch Linux and macOS: Polybar, Neovim, ZSH, Alacritty, Git, and more 👨🏿💻
Stars: ✭ 13 (-98.61%)
Mutual labels: dotfiles, arch-linux
dotfiles
💻 My personal dotfiles for macOS using Kitty, Fish, Neovim, Tmux 🛠
Stars: ✭ 54 (-94.23%)
Mutual labels: dotfiles, fish
Arch Dotfiles
A set of elegant dotfiles in the spirit of Arch Linux that will give you a development boon.
Stars: ✭ 19 (-97.97%)
Mutual labels: dotfiles, arch-linux
dotfiles
Dotfiles for my personal UNIX-based machines
Stars: ✭ 16 (-98.29%)
Mutual labels: dotfiles, fish
AwsTerm
A collection of awesome terminal utilities
Stars: ✭ 37 (-96.05%)
Mutual labels: fish, arch-linux
Dotfiles
paul's shell, git, etc config files. also homebrew, migration setup. good stuff.
Stars: ✭ 3,910 (+317.74%)
Mutual labels: fish, dotfiles
Termuxarch
You can use setupTermuxArch.bash 📲 to install Arch Linux in Amazon, Android, Chromebook and Windows. https://sdrausty.github.io/TermuxArch/docs/install
Stars: ✭ 653 (-30.24%)
Mutual labels: dotfiles, arch-linux
Powerline Shell
A beautiful and useful prompt for your shell
Stars: ✭ 5,743 (+513.57%)
Mutual labels: fish, powerline
Dotfiles
Configurations for the tools I use every day
Stars: ✭ 898 (-4.06%)
Mutual labels: fish, dotfiles
dotpr0n
Dotfiles for macOS, FreeBSD, fish, tmux, custom functions and lots more. Peekaboo!
Stars: ✭ 44 (-95.3%)
Mutual labels: dotfiles, fish
dotfiles
🔧 .files - different setups separated in branches
Stars: ✭ 168 (-82.05%)
Mutual labels: arch-linux, powerline
Dotfiles
🐲 My Arch Linux config [i3-gaps + i3blocks + Zsh + Spacemacs + Rofi + Alacritty + Neofetch]
Stars: ✭ 725 (-22.54%)
Mutual labels: dotfiles, arch-linux
Silver
A cross-shell customizable powerline-like prompt with icons
Stars: ✭ 238 (-74.57%)
Mutual labels: fish, powerline
fishline
A powerline prompt framework for the fish-shell built in fish-shell.
Stars: ✭ 66 (-92.95%)
Mutual labels: fish, powerline
Dotfiles
Configuration for Arch Linux, sway, kitty, kakoune, zsh and more + scripted installation guide
Stars: ✭ 385 (-58.87%)
Mutual labels: dotfiles, arch-linux
Awesome Dotfiles
A curated list of dotfiles resources.
Stars: ✭ 6,295 (+572.54%)
Mutual labels: fish, dotfiles
CharlesScripts
可以配合我的博客:Ubuntu Gnome 酷炫完整指南系列使用。
你为什么要安装本项目?
凡是喜欢折腾的朋友肯定经常会遇到下面几个困扰:
- 操作系统被自己搞烂,需要重装,难受!
- 换了新电脑 / 工作环境,一切常用工具又需要重新部署,麻烦!
- 许多插件配置起来太复杂了,缺少自动或版自动化的工具
- 常用的命令就那么几个,还又长又复杂(说的就是你!
apt
和git
)
内容介绍
最初因为我经常会因为愚蠢的操作把操作系统搞得崩溃,写下了本项目以便减轻重装系统之痛。后来我写了许多方便的小工具和脚本,把它们整合起来就变成了本项目:
1. 备份/恢复
本项目会将所有资料备份到 $CHARLES_BACKUP
即 ~/.config/CharlesBackup
,可以使用网盘或git自动上传备份(git备份已经集成在charles-update
命令中)
下面是是相关命令介绍:
-
add-ppa
: 添加ppa
的时候同时备份ppa
列表,在fish-shell
中运行add-ppa (add-ppa)
可以自动添加列表中全部 ppa -
inst
: 使用apt
安装软件的时候同时备份软件名,在fish-shell
中运行inst (inst)
可以自动安装列表中全部软件 -
gnome-shell-extensions-backup
和gnome-shell-extensions-restore
: 备份和恢复Gnome
桌面的插件 -
omf-backup
和omf-restore
: 备份和恢复oh-my-fish
(fish-shell
的包管理器)的插件列表 -
charles-backup
: 调用上述部分命令备份各种插件(可以放到cronjob
里面实现自动备份) -
charles-update
: 更新本项目及相关依赖;自动使用git上传备份
2. 小工具
通知类:
-
ef
fifo
:ef
相当于一个短时备忘录,可以用来记录笔记,相当于编辑fifo
命令;输入fifo
即可运行之前写入的内容。 -
notify
: 提醒你一定时间之后做某事 -
tomato
: 简单的蕃茄钟,定时运行fifo
命令
系统操作:
-
update
: 相当于pacman -Syyu
,更新所有软件 -
apt-unlock
: 删除apt
因为异常退出而没有删掉的文件锁 -
get-path
: 获得选定的文件绝对路径,并放到剪贴板内 -
mac-addr-flush
: 重置 MAC 地址(重启失效) -
wallpaper-earthview
: 更新桌面壁纸(需要先设置好桌面壁纸位置为~/.cache/wallpaper/background-image.jpg
)
其他:
-
ssr
: ShadowSocksR 的一键安装、配置、使用客户端 -
aria2c-daemon-start
: 启动aria2
的下载服务 -
gh-md-toc
: Forked from gh-md-toc, 为 GitHub 的 Markdown 文件加入目录 -
gojuon
: 日语五十音学习小工具 -
ipgw
ipgw_py
: 命令行版的东北大学校园网登录器
网页相关:
-
wechat
: 打开微信 -
pocket
: 打开 Pocket -
shanbay
: 打开扇贝单词
包含在 .bashrc
或 fish-shell config.fish
中的简便操作:
写在CharlesScripts/charles/shell.rc.d
中的脚本函数:
-
backup
: 将文件备份(复制一份并添加.bak
后缀) -
cls
:cd
到指定文件夹然后ls
-
dict
: 将dict
查到的单词输出到less
内,以免单词解释过长显示不完还要再翻回去看 -
g
: 使用git
一条龙地执行git add -A
,git diff --cached
,git status
,git commit -m <commit message>
,git push
,并检查 push 是否成功,若失败则提醒你检查一下 -
mcd
: 先mkdir
再cd
到刚刚创建的文件夹内 -
md5check
:md5check <file> <md5>
,用grep
检查md5是否一样 -
viz
: 使用graphviz
编译为指定格式的图片,用法为viz source.dot png
在CharlesScripts/charles/installation.d/conf.d/config-fish
配置好的命令缩写
-
...
->cd ...
-
c
->clear; cd
-
cl
->cd ..;ls
-
eg
->grep -E
-
ftps
->python3 -m http.server 8080
: 快速开启一个简易 ftp 服务器 -
gaa
->git add -A
-
gb
->git branch -c
-
gck
->git checkout
-
gcm
->git commit -m
-
gl
->git l
: 显示结构化的 git 日志 -
gm
->git merge --no-ff
-
gp
->git push
-
gpl
->git pull
-
gst
->git status
-
histg
->history | grep
-
i
->ipython --no-confirm-exit --no-banner --pprint -i --pylab=auto
-
l
->ls --color=auto
-
la
->ls --almost-all --color=auto
-
le
->ls --almost-all --color=auto|egrep
-
lg
->ls --almost-all --color=auto|grep
-
ll
->ls --almost-all -lh --color=auto
-
n
->xdg-open .
-
o
->xdg-open
-
p
->python
-
pdb
->python -mpowerline.bindings.pdb
-
su
->sudo su
-
u
->update
3. 安装软件
脚本在 CharlesScripts/charles/installation.d/get.d
标 *
的是推荐安装的
get.d/
├── get-calibre
├── get-docker
├──*get-fasd
├──*get-oh-my-fish
├──*get-powerline
├── get-spacemacs
├── get-spacevim
├── get-sublime-text-3
├──*get-thefuck
└── get-xsh
4. 配置软件
脚本在 CharlesScripts/charles/installation.d/conf.d
标 *
的是推荐安装的
conf.d/
├──*config-bash
├──*config-fish
├──*config-git
├──*config-gnome
├──*config-powerline-bash
├── config-powerline-ipython
└──*config-tmux
安装指南
装前必读:
- 本项目并未经过大量测试,需要读者有基本的 Linux 问题处理能力
- 支持的操作系统:Arch Linux 或 Ubuntu Gnome 最新LTS版
- 依赖项(需要用户自行安装): Nerd Fonts, Google Chrome, curl
- 可选项:Anaconda, ipython (>=5.0), fortune-zh
逐步安装:
- 安装依赖
- 下载本项目:
git clone https://github.com/the0demiurge/CharlesScripts.git ~/.local/share/CharlesScripts
cd ~/.local/share/CharlesScripts/charles/installation.d
- 阅读并运行相关软件安装脚本和配置脚本。
安装脚本(测试中):
bash <(curl -L https://git.io/get-charles)
效果图:
按照Ubuntu Gnome 酷炫完整指南系列介绍的内容配置后如下图所示。
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].