summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMitsuo Tokumori <[email protected]>2022-07-09 15:16:56 -0500
committerMitsuo Tokumori <[email protected]>2022-07-09 15:16:56 -0500
commit19746029313c650855fedc868cdc285dc3dfe440 (patch)
tree84159269a83790520d1934560337b148c80bb4ac
parent138076ad309c09640395421bfdb330d8cb0efc43 (diff)
downloaddotfiles-19746029313c650855fedc868cdc285dc3dfe440.tar.gz
dotfiles-19746029313c650855fedc868cdc285dc3dfe440.tar.bz2
dotfiles-19746029313c650855fedc868cdc285dc3dfe440.zip
Make ls sort by ASCII code. And asciidoc Vim map
-rw-r--r--bash_aliases3
-rw-r--r--bashrc3
-rw-r--r--profile5
-rw-r--r--vim/vimrc10
4 files changed, 16 insertions, 5 deletions
diff --git a/bash_aliases b/bash_aliases
index cd39928..9131407 100644
--- a/bash_aliases
+++ b/bash_aliases
@@ -14,10 +14,11 @@ alias diff2='diff --color=always -ys' # side by side, tell if file identical
alias diff='diff --color=always'
alias dir='dir --color=auto'
alias grep='grep --color=auto -i' # color case-insensitive
+# Sort files by ASCII value (override current locale)
+alias ls='LC_ALL=C ls --color=auto --group-directories-first --classify'
alias la='ls -A'
alias ll='ls -l -h'
alias lla='ll -A'
-alias ls='ls --color=auto --group-directories-first --classify'
alias gcc='gcc -g -std=c99 -lm'
alias ed='ed -p "* "'
diff --git a/bashrc b/bashrc
index 6b34e07..e8c0181 100644
--- a/bashrc
+++ b/bashrc
@@ -166,3 +166,6 @@ fi
# Node.js
export NODE_PATH=~/code/nodejs/node-v16.15.1-linux-x64/lib/node_modules
+
+# Rust
+. "$HOME/.cargo/env"
diff --git a/profile b/profile
index 2a798df..34a9fa6 100644
--- a/profile
+++ b/profile
@@ -23,6 +23,8 @@ if [ -d "$HOME/.local/bin" ] ; then
fi
+
+
# Variables
# ======================================================================
@@ -38,6 +40,9 @@ export XDG_DATA_HOME="$HOME/.local/share"
export EDITOR=vim
+# Rust
+. "$HOME/.cargo/env"
+
# Fun
# ======================================================================
diff --git a/vim/vimrc b/vim/vimrc
index 9905035..415212e 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -168,10 +168,12 @@ map <C-\> :tnext<CR>
" Motion to go to beggining of function while cursor is inside
nmap [f [m[{k0
-" pandoc
-nnoremap gm :w<CR>:Md2Html<CR><CR><CR>
-" website
-nmap gM gm:!updatewebsite_zaz<CR><CR>
+" pandoc (& website)
+nnoremap mm :w<CR>:Md2Html<CR><CR><CR>
+nmap mM mm:!updatewebsite_zaz<CR><CR>
+" asciidoc
+nnoremap ma :w<CR>:!asciidoctor %<CR><CR>
+nmap mA ma:!updatewebsite_zaz<CR><CR>
" Funcionallity of the following depends on terminal (8bit input enabled needed
" for <Meta> = Alt key combos