commit
8a95bae7a3
@ -0,0 +1,25 @@
|
||||
# some more ls aliases
|
||||
alias ll='ls -alF'
|
||||
alias la='ls -A'
|
||||
alias l='ls -CF'
|
||||
|
||||
# Add an "alert" alias for long running commands. Use like so:
|
||||
# sleep 10; alert
|
||||
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
|
||||
|
||||
alias cls='clear'
|
||||
|
||||
alias ..='cd ..'
|
||||
alias ...='cd ../..'
|
||||
|
||||
# Git alias
|
||||
|
||||
alias gs='git status'
|
||||
alias gc='git commit -m'
|
||||
alias ga='git add'
|
||||
|
||||
# vi and nvim aliases
|
||||
|
||||
alias vim='nvim'
|
||||
alias vi='nvim'
|
||||
alias ni='nvim'
|
@ -0,0 +1,500 @@
|
||||
more README.markdown
|
||||
cd ~
|
||||
cd .config/
|
||||
ls
|
||||
cd neofetch/
|
||||
ls
|
||||
cat config.conf
|
||||
more config.conf
|
||||
cd ~
|
||||
cd .vim/
|
||||
ls
|
||||
cd plugged/
|
||||
ls
|
||||
cd nerdtree/
|
||||
ls
|
||||
more README.markdown
|
||||
ls
|
||||
cd ..
|
||||
ls
|
||||
cd ..
|
||||
ls
|
||||
cd pack/
|
||||
ls
|
||||
cd tpope/
|
||||
ls
|
||||
cd start/
|
||||
ls
|
||||
cd fugitive/
|
||||
ls
|
||||
cd ..
|
||||
ls
|
||||
cd ..
|
||||
ls
|
||||
cd ..
|
||||
ls
|
||||
cd cd ..
|
||||
cd ..
|
||||
cd .config/
|
||||
ls
|
||||
cd neofetch/
|
||||
ls
|
||||
cd ..
|
||||
ls
|
||||
cd ..
|
||||
cd drwasabi/
|
||||
ls
|
||||
cd .local/
|
||||
ls
|
||||
cd share/
|
||||
ls
|
||||
cd nvim/
|
||||
ls
|
||||
more rplugin.vim
|
||||
cd site
|
||||
ls
|
||||
cd autoload/
|
||||
ls
|
||||
more plug.vim
|
||||
ls ~/.vim/plugged/
|
||||
ls
|
||||
cd ~/.vim/
|
||||
ls
|
||||
cd plugged/
|
||||
ls
|
||||
cd ..
|
||||
curl https://raw.githubusercontent.com/Shougo/neobundle.vim/master/bin/install.sh > install.sh
|
||||
ls
|
||||
ls ~/.vim
|
||||
ls ~/.vim/plugged/
|
||||
ls
|
||||
./install.sh
|
||||
ls
|
||||
ll
|
||||
chmod 0700 ./install.sh
|
||||
ll
|
||||
./install.sh
|
||||
lsnpm
|
||||
node
|
||||
sudo apt install nodejs
|
||||
node update
|
||||
node
|
||||
node update
|
||||
npm
|
||||
sudo apt install npm
|
||||
npm install -g neovim
|
||||
npm
|
||||
exit
|
||||
npm
|
||||
sudo npm install -g neovim
|
||||
cd mydocs/
|
||||
cd my-vim-guide/
|
||||
git status
|
||||
nvim
|
||||
mkdocs serve
|
||||
ps
|
||||
exit
|
||||
cd MyDocs/
|
||||
ls
|
||||
cd my-vim-guide/
|
||||
ls
|
||||
cd doc
|
||||
cd docs/
|
||||
ls
|
||||
vim index.md
|
||||
mv .gitignore ../
|
||||
cd ..
|
||||
git status
|
||||
git add .gitignore
|
||||
git commit
|
||||
git status
|
||||
vim
|
||||
cd ~
|
||||
cd .config/
|
||||
ls
|
||||
cd nvim/
|
||||
git status
|
||||
cd bundle/
|
||||
ls
|
||||
cd ..
|
||||
git add .
|
||||
git rm --cached bundle/neobundle.vim/
|
||||
ls
|
||||
git status
|
||||
git rm --cached bundle/neobundle.vim/ -f
|
||||
git status
|
||||
touch .gitignore
|
||||
vim .gitignore
|
||||
ls .git
|
||||
ls .gitignore
|
||||
vim .git
|
||||
vim .gitignore
|
||||
git status
|
||||
git add .gitignore
|
||||
git commit
|
||||
ls
|
||||
ll
|
||||
vim init.vim
|
||||
cd ..
|
||||
cd MyDocs/
|
||||
ls
|
||||
cd my-vim-guide/
|
||||
vim
|
||||
git status
|
||||
cd ~
|
||||
ls
|
||||
rm install.sh
|
||||
mv MyDocs/ mydocs
|
||||
ls
|
||||
cd mydocs/
|
||||
cd ..
|
||||
cd .config/
|
||||
cd nvim/
|
||||
vim init.vim
|
||||
git diff
|
||||
git commit -a -m "commented out all the ncm2 lines"
|
||||
cd ~/mydocs/my-vim-guide/
|
||||
ls
|
||||
vim
|
||||
cd docs/
|
||||
ls
|
||||
ls ../mkdocs.yml
|
||||
cat ../mkdocs.yml
|
||||
touch using-pluggin-manager.md
|
||||
touch using-git-vim.md
|
||||
ll
|
||||
git status
|
||||
cd ..
|
||||
git add mkdocs.yml
|
||||
git commit
|
||||
cd ~
|
||||
mkdir -p ~/.config/nvim/pack/airblade/start
|
||||
cd ~/.config/nvim/pack/airblade/start
|
||||
git clone https://github.com/airblade/vim-gitgutter.git
|
||||
nvim -u NONE -c "helptags vim-gitgutter/doc" -c q
|
||||
cd..
|
||||
cd ..
|
||||
ls
|
||||
cd ..
|
||||
ls
|
||||
pwd
|
||||
cd ..
|
||||
ls
|
||||
vim
|
||||
git status
|
||||
cd pack/
|
||||
ls
|
||||
cd airblade/
|
||||
ls
|
||||
cd start/
|
||||
ls
|
||||
cd vim-gitgutter/
|
||||
ls
|
||||
cd test
|
||||
ls
|
||||
test
|
||||
./test
|
||||
ls
|
||||
cd ..
|
||||
ls
|
||||
more README.mkd
|
||||
nvim README.mkd
|
||||
ls
|
||||
cd ..
|
||||
ls
|
||||
cd ..
|
||||
ls
|
||||
cd ..
|
||||
ls
|
||||
cd ..
|
||||
ls
|
||||
nvim -u NONE -c "helptags vim-gitgutter/doc" -c q
|
||||
ls
|
||||
cd bundle/
|
||||
ls
|
||||
cd ..
|
||||
cd pack/
|
||||
ls
|
||||
cd airblade/
|
||||
ls
|
||||
cd start/
|
||||
ls
|
||||
cd vim-gitgutter/
|
||||
ls
|
||||
cd autoload/
|
||||
ls
|
||||
cat gitgutter
|
||||
cat gitgutter.vim
|
||||
ls
|
||||
cd ..
|
||||
ls
|
||||
cd doc/
|
||||
ls
|
||||
cat gitgutter.txt
|
||||
more gitgutter.txt
|
||||
cd ~
|
||||
cd mydocs/
|
||||
ls
|
||||
cd my-vim-guide/
|
||||
vim
|
||||
cd docs
|
||||
vim index.md
|
||||
vim
|
||||
fzf
|
||||
find
|
||||
fzf
|
||||
sudo apt install fzf
|
||||
fzf
|
||||
fzf /usr/share/
|
||||
fzf /usr/share/cowfiles
|
||||
fzf cowfiles
|
||||
fzf
|
||||
man fzf
|
||||
vim
|
||||
history |fzf npm
|
||||
history |fzf
|
||||
cd /**
|
||||
cd \**
|
||||
ls
|
||||
ll
|
||||
sudp apt install bat
|
||||
sudo apt install bat
|
||||
bat index.md
|
||||
bat
|
||||
where bat
|
||||
wheris bat
|
||||
whereis bat
|
||||
sudo apt install bat
|
||||
sudo apt list bat
|
||||
man bat
|
||||
bat -
|
||||
sudo apt uninstall bat
|
||||
sudo apt
|
||||
sudo apt reinstall bat
|
||||
bat
|
||||
sudo apt remove bat
|
||||
exit
|
||||
sudo apt install bat
|
||||
bat
|
||||
ls
|
||||
fzf
|
||||
fd
|
||||
bat
|
||||
exit
|
||||
pb
|
||||
pb '/mnt/c/Users/Russ Riker/Pictures/duck-notice.png'
|
||||
cd mydocs/
|
||||
cd my-vim-guide/
|
||||
mkdocs serve
|
||||
ps -a
|
||||
w
|
||||
who
|
||||
ps -aux
|
||||
kill 3088
|
||||
mkdocs serve
|
||||
bat
|
||||
sudo apt
|
||||
man apt
|
||||
sudo apt list --installed
|
||||
sudo apt list --installed|fzf
|
||||
sudo apt show bat
|
||||
batbat
|
||||
sudo apt remove bat
|
||||
sudo apt install batcat
|
||||
batbat
|
||||
batcat
|
||||
pwd
|
||||
nvim
|
||||
sudo apt install ripgrep
|
||||
sudo apt install universal-ctags
|
||||
sudo apt install fd-find
|
||||
fd
|
||||
fd-find
|
||||
find
|
||||
cls
|
||||
dir
|
||||
ll
|
||||
ncdu
|
||||
**
|
||||
man fzf
|
||||
vim
|
||||
man fzf
|
||||
exit
|
||||
ssh-add
|
||||
ssh-agent
|
||||
ssh-add
|
||||
history
|
||||
eval $(ssh-agent -s)
|
||||
ssh-add
|
||||
ssh drwasabi@tilde.team
|
||||
fzf
|
||||
vim ./.config/nvim/init.vim
|
||||
cd .config/
|
||||
cd nvim/
|
||||
git status
|
||||
git diff
|
||||
git commit
|
||||
git add init.vim
|
||||
git config --global core.editor "vim"
|
||||
git commit
|
||||
git log
|
||||
git status
|
||||
nvim .gitignore
|
||||
git status
|
||||
git commit -a .gitignore
|
||||
git commit -a
|
||||
mkdir colors
|
||||
ls
|
||||
cd ..
|
||||
ls
|
||||
vim .bashrc
|
||||
exec bash
|
||||
eval $(ssh-agent -s)
|
||||
ssh-add
|
||||
ssh drwasabi@tilde.team
|
||||
cl
|
||||
|
||||
ssh drwasabi@tilde.team
|
||||
cls
|
||||
ping 8.8.8.8
|
||||
eval $(ssh-agent -s)
|
||||
ssh-add
|
||||
ssh drwasabi@tilde.team
|
||||
ni
|
||||
echo $EDITOR
|
||||
cd .config/
|
||||
cd nvim/
|
||||
edit
|
||||
vi init.vim
|
||||
sudo apt install navi
|
||||
navi
|
||||
cls
|
||||
ls
|
||||
bat
|
||||
batcat
|
||||
cd ~
|
||||
ls
|
||||
rm bat-*
|
||||
ls
|
||||
cd downloads/
|
||||
ls
|
||||
sudo dpkg - i bat_0.15.4_amd64.deb
|
||||
sudo dpkg -i bat_0.15.4_amd64.deb
|
||||
bat
|
||||
cd ..
|
||||
bat .bashrc
|
||||
man bat
|
||||
bat --list-themes | fzf --preview="bat --theme={} --color=always /path/to/file"
|
||||
bat --list-themes | fzf --preview="bat --theme={} --color=always"
|
||||
bat --list-themes | fzf --preview="bat --theme={} --color=always .bashrc"
|
||||
cd downloads/
|
||||
ls
|
||||
unzip exa-linux-x86_64-0.9.0.zip
|
||||
ls
|
||||
./exa-linux-x86_64
|
||||
./exa-linux-x86_64 -l
|
||||
mv exa-linux-x86_64 ~/.local/bin/
|
||||
ls
|
||||
ll
|
||||
cd ..
|
||||
cd .local/
|
||||
ls
|
||||
cd bin
|
||||
ls
|
||||
ln exa-linux-x86_64 ls
|
||||
ls
|
||||
ls -l
|
||||
./ls -l
|
||||
ls -?
|
||||
ls --help
|
||||
ls --help|bat
|
||||
./ls --help|bat
|
||||
./ls -D
|
||||
./ls -a
|
||||
./ls -al
|
||||
ln
|
||||
ln -?
|
||||
ln --help
|
||||
rm ./ls
|
||||
ls
|
||||
history |fzf
|
||||
ls
|
||||
ln exa-linux-x86_64 ls -s
|
||||
ll
|
||||
./ls -l
|
||||
...
|
||||
ls
|
||||
cd ~
|
||||
ls
|
||||
vim .config/nvim/init.vim
|
||||
cd .config/nvim/
|
||||
git status
|
||||
git add init.vim
|
||||
git commit
|
||||
vim init.vim
|
||||
ripgrep
|
||||
sudo apt install ripgrep
|
||||
sudo apt-autoremove
|
||||
sudo apt autoremove
|
||||
vim init.vim
|
||||
ls
|
||||
ll
|
||||
bat tags
|
||||
man bat
|
||||
bat --list-themems
|
||||
bat --list-themes
|
||||
git status
|
||||
rm 8
|
||||
rm tags
|
||||
ls
|
||||
cd colors/
|
||||
ls
|
||||
ll
|
||||
cd ..
|
||||
bat init.vim
|
||||
vi init.vim
|
||||
echo $TZ
|
||||
git status
|
||||
git diff
|
||||
ls
|
||||
git status
|
||||
git add .
|
||||
git commit
|
||||
ls
|
||||
ll
|
||||
cd ..
|
||||
ll
|
||||
bat .gitconfig
|
||||
cd dev
|
||||
ls
|
||||
mkdir dotfiles
|
||||
cd dotfiles/
|
||||
git init
|
||||
ls ~/.vim
|
||||
ls
|
||||
mv ~/.bashrc
|
||||
mv ~/.bashrc .
|
||||
ls
|
||||
ll
|
||||
...
|
||||
ls /dev/
|
||||
ls ./dev/
|
||||
ls ./dev/dotfiles/.bashrc .bashrc -s
|
||||
man ln
|
||||
ls -s ./dev/dotfiles/.bashrc
|
||||
ls
|
||||
ll
|
||||
ls -s ./dev/dotfiles/.bashrc .
|
||||
ll
|
||||
man ln
|
||||
ln -s ./dev/dotfiles/.bashrc
|
||||
ll
|
||||
exec bash
|
||||
exit
|
||||
cd ~
|
||||
ls
|
||||
vim .bashrc
|
||||
ll
|
||||
ls -l
|
||||
mv ./mydev/ ./dev
|
||||
exec bash
|
@ -0,0 +1,7 @@
|
||||
# ~/.bash_logout: executed by bash(1) when login shell exits.
|
||||
|
||||
# when leaving the console clear the screen to increase privacy
|
||||
|
||||
if [ "$SHLVL" = 1 ]; then
|
||||
[ -x /usr/bin/clear_console ] && /usr/bin/clear_console -q
|
||||
fi
|
@ -0,0 +1,138 @@
|
||||
# ~/.bashrc: executed by bash(1) for non-login shells.
|
||||
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
|
||||
# for examples
|
||||
|
||||
# If not running interactively, don't do anything
|
||||
case $- in
|
||||
*i*) ;;
|
||||
*) return;;
|
||||
esac
|
||||
|
||||
# don't put duplicate lines or lines starting with space in the history.
|
||||
# See bash(1) for more options
|
||||
HISTCONTROL=ignoreboth
|
||||
|
||||
# append to the history file, don't overwrite it
|
||||
shopt -s histappend
|
||||
|
||||
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
|
||||
HISTSIZE=1000
|
||||
HISTFILESIZE=2000
|
||||
|
||||
# check the window size after each command and, if necessary,
|
||||
# update the values of LINES and COLUMNS.
|
||||
shopt -s checkwinsize
|
||||
|
||||
# If set, the pattern "**" used in a pathname expansion context will
|
||||
# match all files and zero or more directories and subdirectories.
|
||||
#shopt -s globstar
|
||||
|
||||
# make less more friendly for non-text input files, see lesspipe(1)
|
||||
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
|
||||
|
||||
# set variable identifying the chroot you work in (used in the prompt below)
|
||||
if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then
|
||||
debian_chroot=$(cat /etc/debian_chroot)
|
||||
fi
|
||||
|
||||
# set a fancy prompt (non-color, unless we know we "want" color)
|
||||
case "$TERM" in
|
||||
xterm-color|*-256color) color_prompt=yes;;
|
||||
esac
|
||||
|
||||
# uncomment for a colored prompt, if the terminal has the capability; turned
|
||||
# off by default to not distract the user: the focus in a terminal window
|
||||
# should be on the output of commands, not on the prompt
|
||||
#force_color_prompt=yes
|
||||
|
||||
if [ -n "$force_color_prompt" ]; then
|
||||
if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
|
||||
# We have color support; assume it's compliant with Ecma-48
|
||||
# (ISO/IEC-6429). (Lack of such support is extremely rare, and such
|
||||
# a case would tend to support setf rather than setaf.)
|
||||
color_prompt=yes
|
||||
else
|
||||
color_prompt=
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ "$color_prompt" = yes ]; then
|
||||
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]<\u@\lhost\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$> '
|
||||
else
|
||||
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
|
||||
fi
|
||||
unset color_prompt force_color_prompt
|
||||
|
||||
# If this is an xterm set the title to user@host:dir
|
||||
case "$TERM" in
|
||||
xterm*|rxvt*)
|
||||
PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
|
||||
;;
|
||||
*)
|
||||
;;
|
||||
esac
|
||||
|
||||
# enable color support of ls and also add handy aliases
|
||||
if [ -x /usr/bin/dircolors ]; then
|
||||
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
|
||||
alias ls='ls --color=auto'
|
||||
#alias dir='dir --color=auto'
|
||||
#alias vdir='vdir --color=auto'
|
||||
|
||||
alias grep='grep --color=auto'
|
||||
alias fgrep='fgrep --color=auto'
|
||||
alias egrep='egrep --color=auto'
|
||||
fi
|
||||
|
||||
# colored GCC warnings and errors
|
||||
#export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
|
||||
|
||||
|
||||
# Alias definitions.
|
||||
# You may want to put all your additions into a separate file like
|
||||
# ~/.bash_aliases, instead of adding them here directly.
|
||||
# See /usr/share/doc/bash-doc/examples in the bash-doc package.
|
||||
|
||||
if [ -f ~/.bash_aliases ]; then
|
||||
. ~/.bash_aliases
|
||||
fi
|
||||
|
||||
# enable programmable completion features (you don't need to enable
|
||||
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
|
||||
# sources /etc/bash.bashrc).
|
||||
if ! shopt -oq posix; then
|
||||
if [ -f /usr/share/bash-completion/bash_completion ]; then
|
||||
. /usr/share/bash-completion/bash_completion
|
||||
elif [ -f /etc/bash_completion ]; then
|
||||
. /etc/bash_completion
|
||||
fi
|
||||
fi
|
||||
|
||||
# set up some of my go env path
|
||||
export GOPATH=$HOME/dev/go
|
||||
export GOBIN=$HOME/dev/go/bin
|
||||
|
||||
export EDITOR=vim
|
||||
|
||||
# Use the Powerline_go prompt system
|
||||
function _update_ps1() {
|
||||
PS1="$($GOPATH/bin/powerline-go -condensed -error $?)"
|
||||
}
|
||||
if [ "$TERM" != "linux" ] && [ -f "$GOPATH/bin/powerline-go" ]; then
|
||||
PROMPT_COMMAND="_update_ps1; $PROMPT_COMMAND"
|
||||
fi
|
||||
|
||||
# TODO Fix this
|
||||
# create a shortcut to my windows home folder
|
||||
#export $WINHOME=/mnt/c/Users/Russ\ Riker/
|
||||
|
||||
# Add my local /bin to the path
|
||||
export PATH=/home/drwasabi/.local/bin:$PATH
|
||||
|
||||
# cd to my wsl2 home folder
|
||||
cd ~
|
||||
echo ''
|
||||
echo '**************************************************'|lolcat
|
||||
cowsay -f tux "Welcome Dr. The system is ready to accept your commands. Have a nice day" | lolcat
|
||||
echo '**************************************************'|lolcat
|
||||
echo ''
|
Loading…
Reference in New Issue