zshrc & Initial Library
Zsh
$ sudo apt install zsh gawk git -y
$ sudo apt update; sudo apt upgrade -y; sudo apt install curl binutils vim npm -y
$ chsh -s /bin/zsh
$ curl -sL --proto-redir -all,https https://raw.githubusercontent.com/zplug/installer/master/installer.zsh | zsh
$ vim ~/.zshrc
# Add these lines in .zshrc
# Lines configured by zsh-newuser-install
HISTFILE=~/.histfile
HISTSIZE=1000
SAVEHIST=1000
bindkey -e
# End of lines configured by zsh-newuser-install
# The following lines were added by compinstall
zstyle :compinstall filename '/home/sbk6401/.zshrc'
autoload -Uz compinit
compinit
# End of lines added by compinstall
# Delete all temp download files
alias ll="ls -al"
find . -name "*:Zone.Identifier" -type f -delete
export ZSH="$HOME/.zplug/repos/robbyrussell/oh-my-zsh"
ZSH_THEME="robbyrussell"
ZSH_THEME="powerlevel10k/powerlevel10k"
source ~/.zplug/init.zsh
npm install -g tldr
# zplug plugins
zplug "romkatv/powerlevel10k", as:theme, depth:1
zplug 'zplug/zplug', hook-build:'zplug --self-manage'
zplug "zsh-users/zsh-autosuggestions"
if ! zplug check --verbose; then
printf "Install? [y/N]: "
if read -q; then
echo; zplug install
else
echo
fi
fi
zplug load
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
- 客製化 zshrc
source ~/anaconda3/bin/activate CTF cd /mnt/d/NTU/CTF/PicoCTF/ alias ll='ls -al' alias gccc='gcc -Wl,--dynamic-linker=/usr/src/glibc/glibc_dbg/elf/ld.so -g'
gdb-gef
Touch 2 files
1 |
|